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