xref: /titanic_41/usr/src/uts/i86pc/Makefile.files (revision 8275a87e46b79352e8c1a918b91373159c477438)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28#	This Makefile defines file modules in the directory uts/i86pc
29#	and its children. These are the source files which are i86pc
30#	"implementation architecture" dependent.
31#
32
33#
34#	object lists
35#
36CORE_OBJS +=			\
37	beeper.o		\
38	biosdisk.o		\
39	bios_call.o		\
40	cbe.o			\
41	cmi.o			\
42	confunix.o		\
43	cpuid.o			\
44	cpupm.o			\
45	dis_tables.o		\
46	ddi_impl.o		\
47	dtrace_subr.o		\
48	dvma.o			\
49	fpu_subr.o		\
50	fakebop.o		\
51	graphics.o		\
52	hardclk.o		\
53	hat_i86.o		\
54	hat_kdi.o		\
55	hment.o			\
56	hold_page.o		\
57	hrtimers.o		\
58	htable.o		\
59	i8254.o			\
60	i86_mmu.o		\
61	instr_size.o		\
62	intr.o			\
63	kboot_mmu.o		\
64	kdi_subr.o		\
65	kdi_idt.o		\
66	kdi_idthdl.o		\
67	kdi_asm.o		\
68	lgrpplat.o		\
69	mach_kdi.o		\
70	mach_sysconfig.o	\
71	machdep.o		\
72	mem_config_stubs.o	\
73	memnode.o		\
74	microcode.o		\
75	mlsetup.o		\
76	mp_call.o		\
77	mp_implfuncs.o		\
78	mp_machdep.o		\
79	mp_pc.o			\
80	mp_startup.o		\
81	memscrub.o		\
82	mpcore.o		\
83	notes.o			\
84	pci_bios.o		\
85	pci_cfgspace.o		\
86	pci_mech1.o		\
87	pci_mech2.o		\
88	pci_neptune.o		\
89	pci_orion.o		\
90	pmem.o			\
91	ppage.o			\
92	startup.o		\
93	timestamp.o		\
94	todpc_subr.o		\
95	trap.o			\
96	vm_machdep.o		\
97	x_call.o
98
99#
100#	Add the SMBIOS subsystem object files directly to the list of objects
101#	built into unix itself; this is all common code except for smb_dev.c.
102#
103CORE_OBJS += $(SMBIOS_OBJS)
104
105#
106# These get compiled twice:
107# - once in the dboot (direct boot) identity mapped code
108# - once for use during early startup in unix
109#
110BOOT_DRIVER_OBJS =		\
111	boot_console.o		\
112	boot_keyboard.o		\
113	boot_keyboard_table.o	\
114	boot_vga.o		\
115	boot_mmu.o
116
117CORE_OBJS += $(BOOT_DRIVER_OBJS)
118
119#
120#	locore.o is special. It must be the first file relocated so that it
121#	it is relocated just where its name implies.
122#
123SPECIAL_OBJS_32 +=		\
124	locore.o		\
125	fast_trap_asm.o		\
126	interrupt.o		\
127	syscall_asm.o
128
129SPECIAL_OBJS_64 +=		\
130	locore.o		\
131	fast_trap_asm.o		\
132	interrupt.o		\
133	syscall_asm_amd64.o
134
135SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
136
137#
138# Objects that get compiled into the identity mapped PT_LOAD section of unix
139# to handle the earliest part of booting.
140#
141DBOOT_OBJS_32 =
142
143DBOOT_OBJS_64 += dboot_elfload.o
144
145DBOOT_OBJS +=			\
146	dboot_grub.o		\
147	dboot_startkern.o	\
148	dboot_printf.o		\
149	memcpy.o		\
150	memset.o		\
151	muldiv.o		\
152	string.o		\
153	$(BOOT_DRIVER_OBJS)	\
154	$(DBOOT_OBJS_$(CLASS))
155
156#
157#			driver and misc modules
158#
159GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
160			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
161ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
162PCI_E_MISC_OBJS += pcie_error.o
163PCI_E_NEXUS_OBJS += npe.o npe_misc.o
164PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
165PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
166PCPLUSMP_OBJS += apic.o psm_common.o apic_introp.o mp_platform_common.o
167
168BATTERY_OBJS	+= battery.o
169include $(SRC)/common/mc/mc-amd/Makefile.mcamd
170MCAMD_OBJS	+= \
171	$(MCAMD_CMN_OBJS) \
172	mcamd_drv.o \
173	mcamd_dimmcfg.o \
174	mcamd_subr.o \
175	mcamd_pcicfg.o
176
177CPUDRV_OBJS	+= cpudrv.o cpudrv_plat.o cpu_acpi.o speedstep.o
178CPUNEX_OBJS	+= cpunex.o
179PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
180
181ROOTNEX_OBJS += rootnex.o
182TZMON_OBJS	+= tzmon.o
183UPPC_OBJS += uppc.o psm_common.o
184XSVC_OBJS += xsvc.o
185
186#
187#	Build up defines and paths.
188#
189ALL_DEFS	+= -Di86pc
190INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
191
192#
193# Since the assym files are derived, the dependencies must be explicit for
194# all files including this file. (This is only actually required in the
195# instance when the .nse_depinfo file does not exist.) It may seem that
196# the lint targets should also have a similar dependency, but they don't
197# since only C headers are included when #defined(__lint) is true.
198#
199
200ASSYM_DEPS      += 		\
201	copy.o			\
202	desctbls_asm.o		\
203	ddi_i86_asm.o		\
204	exception.o		\
205	fast_trap_asm.o		\
206	float.o			\
207	i86_subr.o		\
208	interrupt.o		\
209	lock_prim.o		\
210	locore.o		\
211	mpcore.o		\
212	sseblk.o		\
213	swtch.o			\
214	syscall_asm.o		\
215	syscall_asm_amd64.o
216
217$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
218
219ASSYM_DEPS += kdi_asm.o
220