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