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