xref: /titanic_51/usr/src/uts/i86pc/Makefile.files (revision 1100f00d5652de2808b73c61bcfdb3fc87ef1fc8)
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	beeper.o		\
38	biosdisk.o		\
39	bios_call.o		\
40	cbe.o			\
41	cmi.o			\
42	confunix.o		\
43	cpuid.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	i8254.o			\
59	i86_mmu.o		\
60	instr_size.o		\
61	intr.o			\
62	kboot_mmu.o		\
63	kdi_subr.o		\
64	kdi_idt.o		\
65	kdi_idthdl.o		\
66	kdi_asm.o		\
67	lgrpplat.o		\
68	mach_kdi.o		\
69	mach_sysconfig.o	\
70	machdep.o		\
71	mem_config_stubs.o	\
72	memnode.o		\
73	microcode.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_grub.o		\
146	dboot_startkern.o	\
147	dboot_printf.o		\
148	memcpy.o		\
149	memset.o		\
150	muldiv.o		\
151	string.o		\
152	$(BOOT_DRIVER_OBJS)	\
153	$(DBOOT_OBJS_$(CLASS))
154
155#
156#			driver and misc modules
157#
158GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
159			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
160ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
161PCI_E_MISC_OBJS += pcie_error.o
162PCI_E_NEXUS_OBJS += npe.o npe_misc.o
163PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
164PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
165PCPLUSMP_OBJS += apic.o psm_common.o apic_introp.o mp_platform_common.o
166
167BATTERY_OBJS	+= battery.o
168include $(SRC)/common/mc/mc-amd/Makefile.mcamd
169MCAMD_OBJS	+= \
170	$(MCAMD_CMN_OBJS) \
171	mcamd_drv.o \
172	mcamd_dimmcfg.o \
173	mcamd_subr.o \
174	mcamd_pcicfg.o
175
176ROOTNEX_OBJS += rootnex.o
177TZMON_OBJS	+= tzmon.o
178UPPC_OBJS += uppc.o psm_common.o
179XSVC_OBJS += xsvc.o
180
181#
182#	Build up defines and paths.
183#
184ALL_DEFS	+= -Di86pc
185INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
186
187#
188# Since the assym files are derived, the dependencies must be explicit for
189# all files including this file. (This is only actually required in the
190# instance when the .nse_depinfo file does not exist.) It may seem that
191# the lint targets should also have a similar dependency, but they don't
192# since only C headers are included when #defined(__lint) is true.
193#
194
195ASSYM_DEPS      += 		\
196	copy.o			\
197	desctbls_asm.o		\
198	ddi_i86_asm.o		\
199	exception.o		\
200	fast_trap_asm.o		\
201	float.o			\
202	i86_subr.o		\
203	interrupt.o		\
204	lock_prim.o		\
205	locore.o		\
206	mpcore.o		\
207	sseblk.o		\
208	swtch.o			\
209	syscall_asm.o		\
210	syscall_asm_amd64.o
211
212$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
213
214ASSYM_DEPS += kdi_asm.o
215