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