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