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