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