xref: /illumos-gate/usr/src/uts/i86xpv/Makefile.files (revision b8052df9f609edb713f6828c9eecc3d7be19dfb3)
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# Copyright 2019 Joyent, Inc.
26#
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	acpi_stubs.o		\
38	balloon.o		\
39	biosdisk.o		\
40	cbe.o			\
41	cmi.o			\
42	cmi_hw.o		\
43	cms.o			\
44	confunix.o		\
45	cpuid.o			\
46	cpuid_subr.o		\
47	cpupm.o			\
48	cpupm_mach.o		\
49	dis_tables.o		\
50	ddi_impl.o		\
51	dtrace_subr.o		\
52	dvma.o			\
53	fakebop.o		\
54	fpu_subr.o		\
55	fastboot.o		\
56	fb_swtch.o		\
57	graphics.o		\
58	hardclk.o		\
59	hat_i86.o		\
60	hat_kdi.o		\
61	hment.o			\
62	hold_page.o		\
63	hrtimers.o		\
64	htable.o		\
65	i86_mmu.o		\
66	ibft.o			\
67	instr_size.o		\
68	intr.o			\
69	kboot_mmu.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	md_clear.o		\
78	mem_config_stubs.o	\
79	memnode.o		\
80	microcode.o		\
81	mlsetup.o		\
82	mp_call.o		\
83	mp_implfuncs.o		\
84	mp_machdep.o		\
85	mp_startup.o		\
86	memscrub.o		\
87	notes.o			\
88	pci_bios.o		\
89	pci_cfgacc.o		\
90	pci_cfgacc_x86.o	\
91	pci_cfgspace.o		\
92	pci_mech1.o		\
93	pci_mech2.o		\
94	pci_neptune.o		\
95	pci_orion.o		\
96	pmem.o			\
97	ppage.o			\
98	startup.o		\
99	ssp.o			\
100	xpv_timestamp.o		\
101	todpc_subr.o		\
102	trap.o			\
103	vm_machdep.o		\
104	x_call.o
105
106#
107#	Add the SMBIOS subsystem object files directly to the list of objects
108#	built into unix itself; this is all common code except for smb_dev.c.
109#
110CORE_OBJS += $(SMBIOS_OBJS)
111
112#
113# These get compiled twice:
114# - once in the dboot (direct boot) identity mapped code
115# - once for use during early startup in unix
116#
117BOOT_DRIVER_OBJS =		\
118	boot_console.o		\
119	boot_keyboard.o		\
120	boot_keyboard_table.o	\
121	boot_mmu.o		\
122	boot_vga.o		\
123	boot_fb.o		\
124	boot_xconsole.o		\
125	dboot_multiboot2.o	\
126	$(FONT_OBJS)
127
128CORE_OBJS += $(BOOT_DRIVER_OBJS)
129
130#
131# Extra XEN files separated out for now.
132#
133CORE_OBJS +=			\
134	cpr_driver.o		\
135	evtchn.o		\
136	gnttab.o		\
137	hypercall.o		\
138	hyperevent.o		\
139	hypersubr.o		\
140	mp_xen.o		\
141	panic_asm.o		\
142	xenguest.o		\
143	xenbus_client.o		\
144	xenbus_comms.o		\
145	xenbus_probe.o		\
146	xenbus_xs.o		\
147	xen_machdep.o		\
148	xen_mmu.o		\
149	xpv_panic.o		\
150	xvdi.o
151
152#
153#	locore.o is special. It must be the first file relocated so that it
154#	it is relocated just where its name implies.
155#
156SPECIAL_OBJS +=			\
157	locore.o		\
158	fast_trap_asm.o		\
159	interrupt.o		\
160	syscall_asm_amd64.o	\
161	kpti_trampolines.o
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 \
191		    gfxp_fb.o gfxp_bitmap.o
192IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
193ISANEXUS_OBJS += isa.o dma_engine.o i8237A.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 mp_platform_xpv.o \
202		apic_regops.o psm_common.o xpv_intr.o
203XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
204XENBUS_OBJS += xenbus_dev.o
205XENCONS_OBJS += xencons.o
206XPVD_OBJS += xpvd.o
207XPVTAP_OBJS += xpvtap.o blk_common.o seg_mf.o
208XNB_OBJS += xnb.o
209XNBE_OBJS += xnbe.o
210XNBO_OBJS += xnbo.o
211XNBU_OBJS += xnbu.o
212XNF_OBJS += xnf.o
213XSVC_OBJS += xsvc.o
214XDF_OBJS += xdf.o
215XDB_OBJS += xdb.o
216XDT_OBJS += xdt.o
217
218#
219#	Build up defines and paths.
220#
221INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
222	-I$(UTSBASE)/common/xen
223
224#
225# Since the assym files are derived, the dependencies must be explicit for
226# all files including this file.
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_amd64.o
246
247$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
248