xref: /titanic_50/usr/src/uts/i86xpv/Makefile.files (revision be6d98b192e41ad1e1d164e3b5e9b66ff01873c2)
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
27#	This Makefile defines file modules in the directory uts/i86xpv
28#	and its children. These are the source files which are i86xpv
29#	"implementation architecture" dependent.
30#
31
32#
33#	object lists
34#
35CORE_OBJS +=			\
36	acpi_stubs.o		\
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	cpuid_subr.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	fastboot.o		\
54	fb_swtch.o		\
55	graphics.o		\
56	hardclk.o		\
57	hat_i86.o		\
58	hat_kdi.o		\
59	hment.o			\
60	hold_page.o		\
61	hrtimers.o		\
62	htable.o		\
63	i86_mmu.o		\
64	ibft.o			\
65	instr_size.o		\
66	intr.o			\
67	kboot_mmu.o		\
68	kdi_subr.o		\
69	kdi_idt.o		\
70	kdi_idthdl.o		\
71	kdi_asm.o		\
72	lgrpplat.o		\
73	mach_kdi.o		\
74	mach_sysconfig.o	\
75	machdep.o		\
76	mem_config_stubs.o	\
77	memnode.o		\
78	microcode.o		\
79	mlsetup.o		\
80	mp_call.o		\
81	mp_implfuncs.o		\
82	mp_machdep.o		\
83	mp_startup.o		\
84	memscrub.o		\
85	notes.o			\
86	pci_bios.o		\
87	pci_cfgspace.o		\
88	pci_mech1.o		\
89	pci_mech2.o		\
90	pci_neptune.o		\
91	pci_orion.o		\
92	pmem.o			\
93	ppage.o			\
94	startup.o		\
95	xpv_timestamp.o		\
96	todpc_subr.o		\
97	trap.o			\
98	vm_machdep.o		\
99	x_call.o
100
101#
102#	Add the SMBIOS subsystem object files directly to the list of objects
103#	built into unix itself; this is all common code except for smb_dev.c.
104#
105CORE_OBJS += $(SMBIOS_OBJS)
106
107#
108# These get compiled twice:
109# - once in the dboot (direct boot) identity mapped code
110# - once for use during early startup in unix
111#
112BOOT_DRIVER_OBJS =		\
113	boot_console.o		\
114	boot_keyboard.o		\
115	boot_keyboard_table.o	\
116	boot_mmu.o		\
117	boot_vga.o		\
118	boot_xconsole.o
119
120CORE_OBJS += $(BOOT_DRIVER_OBJS)
121
122#
123# Extra XEN files separated out for now.
124#
125CORE_OBJS +=			\
126	cpr_driver.o		\
127	evtchn.o		\
128	gnttab.o		\
129	hypercall.o		\
130	hyperevent.o		\
131	hypersubr.o		\
132	mp_xen.o		\
133	panic_asm.o		\
134	xenguest.o		\
135	xenbus_client.o		\
136	xenbus_comms.o		\
137	xenbus_probe.o		\
138	xenbus_xs.o		\
139	xen_machdep.o		\
140	xen_mmu.o		\
141	xpv_panic.o		\
142	xvdi.o
143
144#
145#	locore.o is special. It must be the first file relocated so that it
146#	it is relocated just where its name implies.
147#
148SPECIAL_OBJS_32 +=		\
149	locore.o		\
150	fast_trap_asm.o		\
151	interrupt.o		\
152	syscall_asm.o
153
154SPECIAL_OBJS_64 +=		\
155	locore.o		\
156	fast_trap_asm.o		\
157	interrupt.o		\
158	syscall_asm_amd64.o
159
160SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
161
162#
163# object files used to boot into full kernel
164#
165DBOOT_OBJS_32 =	muldiv.o
166
167DBOOT_OBJS_64 =
168
169DBOOT_OBJS +=			\
170	dboot_asm.o		\
171	dboot_printf.o		\
172	dboot_startkern.o	\
173	dboot_xen.o		\
174	hypercall.o		\
175	hypersubr.o		\
176	memcpy.o		\
177	memset.o		\
178	string.o		\
179	$(BOOT_DRIVER_OBJS)	\
180	$(DBOOT_OBJS_$(CLASS))
181
182#
183#			driver & misc modules
184#
185BALLOON_OBJS += balloon_drv.o
186DOMCAPS_OBJS += domcaps.o
187EVTCHN_OBJS += evtchn_dev.o
188GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
189		    gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
190IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
191ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
192PCI_E_MISC_OBJS += pcie.o pcie_fault.o
193PCI_E_NEXUS_OBJS += npe.o npe_misc.o
194PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
195PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
196PRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
197ROOTNEX_OBJS += rootnex.o
198XPVTOD_OBJS += xpvtod.o
199XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
200XPV_PSM_OBJS += xpv_psm.o mp_platform_common.o apic_introp.o apic_regops.o psm_common.o
201XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
202XENBUS_OBJS += xenbus_dev.o
203XENCONS_OBJS += xencons.o
204XPVD_OBJS += xpvd.o
205XPVTAP_OBJS += xpvtap.o blk_common.o seg_mf.o
206XNB_OBJS += xnb.o
207XNBE_OBJS += xnbe.o
208XNBO_OBJS += xnbo.o
209XNBU_OBJS += xnbu.o
210XNF_OBJS += xnf.o
211XSVC_OBJS += xsvc.o
212XDF_OBJS += xdf.o
213XDB_OBJS += xdb.o
214XDT_OBJS += xdt.o
215
216#
217#	Build up defines and paths.
218#
219INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
220	-I$(UTSBASE)/common/xen
221
222#
223# Since the assym files are derived, the dependencies must be explicit for
224# all files including this file. (This is only actually required in the
225# instance when the .nse_depinfo file does not exist.) It may seem that
226# the lint targets should also have a similar dependency, but they don't
227# since only C headers are included when #defined(__lint) is true.
228#
229
230ASSYM_DEPS      += 		\
231	copy.o			\
232	desctbls_asm.o		\
233	ddi_i86_asm.o		\
234	exception.o		\
235	fast_trap_asm.o		\
236	float.o			\
237	hyperevent.o		\
238	i86_subr.o		\
239	kdi_asm.o		\
240	interrupt.o		\
241	lock_prim.o		\
242	locore.o		\
243	panic_asm.o		\
244	sseblk.o		\
245	swtch.o			\
246	syscall_asm.o		\
247	syscall_asm_amd64.o
248
249$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
250
251ASSYM_DEPS += kdi_asm.o
252