xref: /illumos-gate/usr/src/uts/i86pc/Makefile.files (revision 9a5d73e03cd3312ddb571a748c40a63c58bd66e5)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#	This Makefile defines file modules in the directory uts/i86pc
27#	and its children. These are the source files which are i86pc
28#	"implementation architecture" dependent.
29#
30
31#
32#	object lists
33#
34CORE_OBJS +=			\
35	acpi_stubs.o		\
36	biosdisk.o		\
37	bios_call.o		\
38	cbe.o			\
39	cmi.o			\
40	cmi_hw.o		\
41	cms.o			\
42	confunix.o		\
43	cpuid.o			\
44	cpuid_subr.o		\
45	cpupm.o			\
46	dis_tables.o		\
47	ddi_impl.o		\
48	dtrace_subr.o		\
49	dvma.o			\
50	fpu_subr.o		\
51	fakebop.o		\
52	fastboot.o		\
53	fb_swtch.o		\
54	graphics.o		\
55	hardclk.o		\
56	hat_i86.o		\
57	hat_kdi.o		\
58	hment.o			\
59	hold_page.o		\
60	hrtimers.o		\
61	htable.o		\
62	i86_mmu.o		\
63	ibft.o			\
64	instr_size.o		\
65	intr.o			\
66	kboot_mmu.o		\
67	kdi_subr.o		\
68	kdi_idt.o		\
69	kdi_idthdl.o		\
70	kdi_asm.o		\
71	lgrpplat.o		\
72	mach_kdi.o		\
73	mach_sysconfig.o	\
74	machdep.o		\
75	mem_config_stubs.o	\
76	memnode.o		\
77	microcode.o		\
78	microfind.o		\
79	mlsetup.o		\
80	mp_call.o		\
81	mp_implfuncs.o		\
82	mp_machdep.o		\
83	mp_pc.o			\
84	mp_startup.o		\
85	memscrub.o		\
86	mpcore.o		\
87	notes.o			\
88	pci_bios.o		\
89	pci_cfgspace.o		\
90	pci_mech1.o		\
91	pci_mech2.o		\
92	pci_neptune.o		\
93	pci_orion.o		\
94	pmem.o			\
95	ppage.o			\
96	startup.o		\
97	timestamp.o		\
98	todpc_subr.o		\
99	trap.o			\
100	vm_machdep.o		\
101	x_call.o
102
103#
104#	Add the SMBIOS subsystem object files directly to the list of objects
105#	built into unix itself; this is all common code except for smb_dev.c.
106#
107CORE_OBJS += $(SMBIOS_OBJS)
108
109#
110# These get compiled twice:
111# - once in the dboot (direct boot) identity mapped code
112# - once for use during early startup in unix
113#
114BOOT_DRIVER_OBJS =		\
115	boot_console.o		\
116	boot_keyboard.o		\
117	boot_keyboard_table.o	\
118	boot_vga.o		\
119	boot_mmu.o
120
121CORE_OBJS += $(BOOT_DRIVER_OBJS)
122
123#
124#	locore.o is special. It must be the first file relocated so that it
125#	it is relocated just where its name implies.
126#
127SPECIAL_OBJS_32 +=		\
128	locore.o		\
129	fast_trap_asm.o		\
130	interrupt.o		\
131	syscall_asm.o
132
133SPECIAL_OBJS_64 +=		\
134	locore.o		\
135	fast_trap_asm.o		\
136	interrupt.o		\
137	syscall_asm_amd64.o
138
139SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
140
141#
142# Objects that get compiled into the identity mapped PT_LOAD section of unix
143# to handle the earliest part of booting.
144#
145DBOOT_OBJS_32 =
146
147DBOOT_OBJS_64 += dboot_elfload.o
148
149DBOOT_OBJS +=			\
150	dboot_asm.o		\
151	dboot_grub.o		\
152	dboot_printf.o		\
153	dboot_startkern.o	\
154	memcpy.o		\
155	memset.o		\
156	muldiv.o		\
157	string.o		\
158	$(BOOT_DRIVER_OBJS)	\
159	$(DBOOT_OBJS_$(CLASS))
160
161#
162#			driver and misc modules
163#
164GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
165			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
166IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
167ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
168PCI_E_MISC_OBJS += pcie.o pcie_fault.o
169PCI_E_NEXUS_OBJS += npe.o npe_misc.o
170PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
171PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
172PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o mp_platform_common.o
173
174ACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
175
176CPUDRV_OBJS	+= \
177	cpudrv.o \
178	cpudrv_amd.o \
179	cpudrv_intel.o \
180	cpudrv_mach.o \
181	cpudrv_throttle.o \
182	cpu_acpi.o \
183	speedstep.o \
184	pwrnow.o
185
186PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
187
188ACPIPPM_OBJS	+= acpippm.o acpisleep.o
189
190ROOTNEX_OBJS += rootnex.o iommu_rscs.o dmar_acpi.o intel_iommu.o
191TZMON_OBJS	+= tzmon.o
192UPPC_OBJS += uppc.o psm_common.o
193XSVC_OBJS += xsvc.o
194
195#
196#	Build up defines and paths.
197#
198ALL_DEFS	+= -Di86pc
199INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
200
201#
202# Since the assym files are derived, the dependencies must be explicit for
203# all files including this file. (This is only actually required in the
204# instance when the .nse_depinfo file does not exist.) It may seem that
205# the lint targets should also have a similar dependency, but they don't
206# since only C headers are included when #defined(__lint) is true.
207#
208
209ASSYM_DEPS      += 		\
210	copy.o			\
211	desctbls_asm.o		\
212	ddi_i86_asm.o		\
213	exception.o		\
214	fast_trap_asm.o		\
215	float.o			\
216	i86_subr.o		\
217	interrupt.o		\
218	lock_prim.o		\
219	locore.o		\
220	mpcore.o		\
221	sseblk.o		\
222	swtch.o			\
223	syscall_asm.o		\
224	syscall_asm_amd64.o	\
225	cpr_wakecode.o
226
227CPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
228
229$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
230
231ASSYM_DEPS += kdi_asm.o
232