xref: /illumos-gate/usr/src/uts/i86xpv/Makefile.files (revision bd97c7ce)
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# Copyright 2023 Oxide Computer Company
27#
28
29#	This Makefile defines file modules in the directory uts/i86xpv
30#	and its children. These are the source files which are i86xpv
31#	"implementation architecture" dependent.
32#
33
34#
35#	object lists
36#
37CORE_OBJS +=			\
38	acpi_stubs.o		\
39	balloon.o		\
40	biosdisk.o		\
41	cbe.o			\
42	cmi.o			\
43	cmi_hw.o		\
44	cms.o			\
45	confunix.o		\
46	cpuid.o			\
47	cpuid_subr.o		\
48	cpupm.o			\
49	cpupm_mach.o		\
50	dis_tables.o		\
51	ddi_impl.o		\
52	dtrace_subr.o		\
53	dvma.o			\
54	fakebop.o		\
55	fpu_subr.o		\
56	fastboot.o		\
57	fb_swtch.o		\
58	graphics.o		\
59	hardclk.o		\
60	hat_i86.o		\
61	hat_kdi.o		\
62	hment.o			\
63	hold_page.o		\
64	hrtimers.o		\
65	htable.o		\
66	i86_mmu.o		\
67	ibft.o			\
68	instr_size.o		\
69	intr.o			\
70	kboot_mmu.o		\
71	kdi_idt.o		\
72	kdi_idthdl.o		\
73	kdi_asm.o		\
74	lgrpplat.o		\
75	mach_kdi.o		\
76	mach_sysconfig.o	\
77	machdep.o		\
78	md_clear.o		\
79	mem_config_stubs.o	\
80	memnode.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	prom_reboot.o		\
99	prom_panic.o		\
100	startup.o		\
101	ssp.o			\
102	xpv_timestamp.o		\
103	todpc_subr.o		\
104	trap.o			\
105	vm_machdep.o		\
106	x_call.o
107
108#
109#	Add the SMBIOS subsystem object files directly to the list of objects
110#	built into unix itself; this is all common code except for smb_dev.c.
111#
112CORE_OBJS += $(SMBIOS_OBJS)
113
114#
115# These get compiled twice:
116# - once in the dboot (direct boot) identity mapped code
117# - once for use during early startup in unix
118#
119BOOT_DRIVER_OBJS =		\
120	boot_console.o		\
121	boot_keyboard.o		\
122	boot_keyboard_table.o	\
123	boot_mmu.o		\
124	boot_vga.o		\
125	boot_fb.o		\
126	boot_xconsole.o		\
127	dboot_multiboot2.o	\
128	$(FONT_OBJS)
129
130CORE_OBJS += $(BOOT_DRIVER_OBJS)
131
132#
133# Extra XEN files separated out for now.
134#
135CORE_OBJS +=			\
136	cpr_driver.o		\
137	evtchn.o		\
138	gnttab.o		\
139	hypercall.o		\
140	hyperevent.o		\
141	hypersubr.o		\
142	mp_xen.o		\
143	panic_asm.o		\
144	xenguest.o		\
145	xenbus_client.o		\
146	xenbus_comms.o		\
147	xenbus_probe.o		\
148	xenbus_xs.o		\
149	xen_machdep.o		\
150	xen_mmu.o		\
151	xpv_panic.o		\
152	xvdi.o
153
154#
155#	locore.o is special. It must be the first file relocated so that it
156#	it is relocated just where its name implies.
157#
158SPECIAL_OBJS +=			\
159	locore.o		\
160	fast_trap_asm.o		\
161	interrupt.o		\
162	syscall_asm_amd64.o	\
163	kpti_trampolines.o
164
165#
166# object files used to boot into full kernel
167#
168DBOOT_OBJS_32 =	muldiv.o
169
170DBOOT_OBJS_64 =
171
172DBOOT_OBJS +=			\
173	dboot_asm.o		\
174	dboot_printf.o		\
175	dboot_startkern.o	\
176	dboot_xen.o		\
177	hypercall.o		\
178	hypersubr.o		\
179	memcpy.o		\
180	memset.o		\
181	string.o		\
182	$(BOOT_DRIVER_OBJS)	\
183	$(DBOOT_OBJS_$(CLASS))
184
185#
186#			driver & misc modules
187#
188BALLOON_OBJS += balloon_drv.o
189DOMCAPS_OBJS += domcaps.o
190EVTCHN_OBJS += evtchn_dev.o
191GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
192		    gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o \
193		    gfxp_fb.o gfxp_bitmap.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
198PCI_PRD_OBJS += pci_prd_i86pc.o pci_memlist.o
199PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
200PRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
201ROOTNEX_OBJS += rootnex.o
202XPVTOD_OBJS += xpvtod.o
203XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
204XPV_PSM_OBJS += xpv_psm.o mp_platform_common.o mp_platform_xpv.o \
205		apic_regops.o psm_common.o xpv_intr.o
206XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
207XENBUS_OBJS += xenbus_dev.o
208XENCONS_OBJS += xencons.o
209XPVD_OBJS += xpvd.o
210XPVTAP_OBJS += xpvtap.o blk_common.o seg_mf.o
211XNB_OBJS += xnb.o
212XNBE_OBJS += xnbe.o
213XNBO_OBJS += xnbo.o
214XNBU_OBJS += xnbu.o
215XNF_OBJS += xnf.o
216XSVC_OBJS += xsvc.o
217XDF_OBJS += xdf.o
218XDB_OBJS += xdb.o
219XDT_OBJS += xdt.o
220
221#
222#	Build up defines and paths.
223#
224INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
225	-I$(UTSBASE)/common/xen
226
227#
228# Since the assym files are derived, the dependencies must be explicit for
229# all files including this file.
230#
231
232ASSYM_DEPS      +=		\
233	copy.o			\
234	desctbls_asm.o		\
235	ddi_i86_asm.o		\
236	exception.o		\
237	fast_trap_asm.o		\
238	float.o			\
239	hyperevent.o		\
240	i86_subr.o		\
241	kdi_asm.o		\
242	interrupt.o		\
243	lock_prim.o		\
244	locore.o		\
245	panic_asm.o		\
246	sseblk.o		\
247	swtch.o			\
248	syscall_asm_amd64.o
249
250$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
251