xref: /titanic_44/usr/src/uts/i86pc/Makefile.files (revision e5ba14ff435beeefdaa2e6649e175c74afe02c76)
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	biosdisk.o		\
38	bios_call.o		\
39	cbe.o			\
40	cmi.o			\
41	confunix.o		\
42	cpuid.o			\
43	cpupm.o			\
44	dis_tables.o		\
45	ddi_impl.o		\
46	dtrace_subr.o		\
47	dvma.o			\
48	fpu_subr.o		\
49	fakebop.o		\
50	graphics.o		\
51	hardclk.o		\
52	hat_i86.o		\
53	hat_kdi.o		\
54	hment.o			\
55	hold_page.o		\
56	hrtimers.o		\
57	htable.o		\
58	i86_mmu.o		\
59	instr_size.o		\
60	intr.o			\
61	kboot_mmu.o		\
62	kdi_subr.o		\
63	kdi_idt.o		\
64	kdi_idthdl.o		\
65	kdi_asm.o		\
66	lgrpplat.o		\
67	mach_kdi.o		\
68	mach_sysconfig.o	\
69	machdep.o		\
70	mem_config_stubs.o	\
71	memnode.o		\
72	microcode.o		\
73	microfind.o		\
74	mlsetup.o		\
75	mp_call.o		\
76	mp_implfuncs.o		\
77	mp_machdep.o		\
78	mp_pc.o			\
79	mp_startup.o		\
80	memscrub.o		\
81	mpcore.o		\
82	notes.o			\
83	pci_bios.o		\
84	pci_cfgspace.o		\
85	pci_mech1.o		\
86	pci_mech2.o		\
87	pci_neptune.o		\
88	pci_orion.o		\
89	pmem.o			\
90	ppage.o			\
91	startup.o		\
92	timestamp.o		\
93	todpc_subr.o		\
94	trap.o			\
95	vm_machdep.o		\
96	x_call.o
97
98#
99#	Add the SMBIOS subsystem object files directly to the list of objects
100#	built into unix itself; this is all common code except for smb_dev.c.
101#
102CORE_OBJS += $(SMBIOS_OBJS)
103
104#
105# These get compiled twice:
106# - once in the dboot (direct boot) identity mapped code
107# - once for use during early startup in unix
108#
109BOOT_DRIVER_OBJS =		\
110	boot_console.o		\
111	boot_keyboard.o		\
112	boot_keyboard_table.o	\
113	boot_vga.o		\
114	boot_mmu.o
115
116CORE_OBJS += $(BOOT_DRIVER_OBJS)
117
118#
119#	locore.o is special. It must be the first file relocated so that it
120#	it is relocated just where its name implies.
121#
122SPECIAL_OBJS_32 +=		\
123	locore.o		\
124	fast_trap_asm.o		\
125	interrupt.o		\
126	syscall_asm.o
127
128SPECIAL_OBJS_64 +=		\
129	locore.o		\
130	fast_trap_asm.o		\
131	interrupt.o		\
132	syscall_asm_amd64.o
133
134SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
135
136#
137# Objects that get compiled into the identity mapped PT_LOAD section of unix
138# to handle the earliest part of booting.
139#
140DBOOT_OBJS_32 =
141
142DBOOT_OBJS_64 += dboot_elfload.o
143
144DBOOT_OBJS +=			\
145	dboot_asm.o		\
146	dboot_grub.o		\
147	dboot_printf.o		\
148	dboot_startkern.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
178PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
179
180ROOTNEX_OBJS += rootnex.o
181TZMON_OBJS	+= tzmon.o
182UPPC_OBJS += uppc.o psm_common.o
183XSVC_OBJS += xsvc.o
184
185#
186#	Build up defines and paths.
187#
188ALL_DEFS	+= -Di86pc
189INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
190
191#
192# Since the assym files are derived, the dependencies must be explicit for
193# all files including this file. (This is only actually required in the
194# instance when the .nse_depinfo file does not exist.) It may seem that
195# the lint targets should also have a similar dependency, but they don't
196# since only C headers are included when #defined(__lint) is true.
197#
198
199ASSYM_DEPS      += 		\
200	copy.o			\
201	desctbls_asm.o		\
202	ddi_i86_asm.o		\
203	exception.o		\
204	fast_trap_asm.o		\
205	float.o			\
206	i86_subr.o		\
207	interrupt.o		\
208	lock_prim.o		\
209	locore.o		\
210	mpcore.o		\
211	sseblk.o		\
212	swtch.o			\
213	syscall_asm.o		\
214	syscall_asm_amd64.o
215
216$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
217
218ASSYM_DEPS += kdi_asm.o
219