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