xref: /titanic_50/usr/src/uts/i86pc/Makefile.files (revision 753a6d457b330b1b29b2d3eefcd0831116ce950d)
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
174IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
175ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
176PCI_E_MISC_OBJS += pcie.o pcie_fault.o
177PCI_E_NEXUS_OBJS += npe.o npe_misc.o
178PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
179PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
180PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
181			mp_platform_common.o hpet_acpi.o
182
183ACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
184
185CPUDRV_OBJS	+= \
186	cpudrv.o \
187	cpudrv_mach.o
188
189PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
190
191ACPIPPM_OBJS	+= acpippm.o acpisleep.o
192
193ROOTNEX_OBJS += rootnex.o iommu_rscs.o dmar_acpi.o intel_iommu.o
194TZMON_OBJS	+= tzmon.o
195UPPC_OBJS += uppc.o psm_common.o
196XSVC_OBJS += xsvc.o
197
198#
199#	Build up defines and paths.
200#
201ALL_DEFS	+= -Di86pc
202INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
203
204#
205# Since the assym files are derived, the dependencies must be explicit for
206# all files including this file. (This is only actually required in the
207# instance when the .nse_depinfo file does not exist.) It may seem that
208# the lint targets should also have a similar dependency, but they don't
209# since only C headers are included when #defined(__lint) is true.
210#
211
212ASSYM_DEPS      += 		\
213	copy.o			\
214	desctbls_asm.o		\
215	ddi_i86_asm.o		\
216	exception.o		\
217	fast_trap_asm.o		\
218	float.o			\
219	i86_subr.o		\
220	interrupt.o		\
221	lock_prim.o		\
222	locore.o		\
223	mpcore.o		\
224	sseblk.o		\
225	swtch.o			\
226	syscall_asm.o		\
227	syscall_asm_amd64.o	\
228	cpr_wakecode.o
229
230CPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
231
232$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
233
234ASSYM_DEPS += kdi_asm.o
235