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