xref: /titanic_50/usr/src/uts/i86xpv/Makefile.files (revision d2b85481f18adf6f3720470849b073e3b8dd3ed8)
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/i86xpv
29#	and its children. These are the source files which are i86xpv
30#	"implementation architecture" dependent.
31#
32
33#
34#	object lists
35#
36CORE_OBJS +=			\
37	balloon.o		\
38	biosdisk.o		\
39	cbe.o			\
40	cmi.o			\
41	cmi_hw.o		\
42	cms.o			\
43	confunix.o		\
44	cpuid.o			\
45	cpupm.o			\
46	dis_tables.o		\
47	ddi_impl.o		\
48	dtrace_subr.o		\
49	dvma.o			\
50	fakebop.o		\
51	fpu_subr.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	mlsetup.o		\
76	mp_call.o		\
77	mp_implfuncs.o		\
78	mp_machdep.o		\
79	mp_startup.o		\
80	memscrub.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	xpv_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_mmu.o		\
113	boot_vga.o		\
114	boot_xconsole.o
115
116CORE_OBJS += $(BOOT_DRIVER_OBJS)
117
118#
119# Extra XEN files separated out for now.
120#
121CORE_OBJS +=			\
122	cpr_driver.o		\
123	evtchn.o		\
124	gnttab.o		\
125	hypercall.o		\
126	hyperevent.o		\
127	hypersubr.o		\
128	mp_xen.o		\
129	panic_asm.o		\
130	xenguest.o		\
131	xenbus_client.o		\
132	xenbus_comms.o		\
133	xenbus_probe.o		\
134	xenbus_xs.o		\
135	xen_machdep.o		\
136	xen_mmu.o		\
137	xpv_panic.o		\
138	xvdi.o
139
140#
141#	locore.o is special. It must be the first file relocated so that it
142#	it is relocated just where its name implies.
143#
144SPECIAL_OBJS_32 +=		\
145	locore.o		\
146	fast_trap_asm.o		\
147	interrupt.o		\
148	syscall_asm.o
149
150SPECIAL_OBJS_64 +=		\
151	locore.o		\
152	fast_trap_asm.o		\
153	interrupt.o		\
154	syscall_asm_amd64.o
155
156SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
157
158#
159# object files used to boot into full kernel
160#
161DBOOT_OBJS_32 =	muldiv.o
162
163DBOOT_OBJS_64 =
164
165DBOOT_OBJS +=			\
166	dboot_asm.o		\
167	dboot_printf.o		\
168	dboot_startkern.o	\
169	dboot_xen.o		\
170	hypercall.o		\
171	hypersubr.o		\
172	memcpy.o		\
173	memset.o		\
174	string.o		\
175	$(BOOT_DRIVER_OBJS)	\
176	$(DBOOT_OBJS_$(CLASS))
177
178#
179#			driver & misc modules
180#
181ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
182DOMCAPS_OBJS += domcaps.o
183BALLOON_OBJS += balloon_drv.o
184EVTCHN_OBJS += evtchn_dev.o
185GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
186		    gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
187PCI_E_MISC_OBJS += pcie_error.o
188PCI_E_NEXUS_OBJS += npe.o npe_misc.o
189PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
190PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
191PRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
192ROOTNEX_OBJS += rootnex.o
193XPVTOD_OBJS += xpvtod.o
194XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
195XPV_PSM_OBJS += xpv_psm.o mp_platform_common.o apic_introp.o psm_common.o
196XENBUS_OBJS += xenbus_dev.o
197XENCONS_OBJS += xencons.o
198XPVD_OBJS += xpvd.o
199XNB_OBJS += xnb.o
200XNBE_OBJS += xnbe.o
201XNBO_OBJS += xnbo.o
202XNBU_OBJS += xnbu.o
203XNF_OBJS += xnf.o
204XSVC_OBJS += xsvc.o
205XDF_OBJS += xdf.o
206XDB_OBJS += xdb.o
207
208#
209#	Build up defines and paths.
210#
211INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common
212
213#
214# Since the assym files are derived, the dependencies must be explicit for
215# all files including this file. (This is only actually required in the
216# instance when the .nse_depinfo file does not exist.) It may seem that
217# the lint targets should also have a similar dependency, but they don't
218# since only C headers are included when #defined(__lint) is true.
219#
220
221ASSYM_DEPS      += 		\
222	copy.o			\
223	desctbls_asm.o		\
224	ddi_i86_asm.o		\
225	exception.o		\
226	fast_trap_asm.o		\
227	float.o			\
228	hyperevent.o		\
229	i86_subr.o		\
230	kdi_asm.o		\
231	interrupt.o		\
232	lock_prim.o		\
233	locore.o		\
234	panic_asm.o		\
235	sseblk.o		\
236	swtch.o			\
237	syscall_asm.o		\
238	syscall_asm_amd64.o
239
240$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
241
242ASSYM_DEPS += kdi_asm.o
243