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