xref: /illumos-gate/usr/src/uts/i86xpv/Makefile.files (revision 0aaef2f5)
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 +=			\
158	locore.o		\
159	fast_trap_asm.o		\
160	interrupt.o		\
161	syscall_asm_amd64.o	\
162	kpti_trampolines.o
163
164#
165# object files used to boot into full kernel
166#
167DBOOT_OBJS_32 =	muldiv.o
168
169DBOOT_OBJS_64 =
170
171DBOOT_OBJS +=			\
172	dboot_asm.o		\
173	dboot_printf.o		\
174	dboot_startkern.o	\
175	dboot_xen.o		\
176	hypercall.o		\
177	hypersubr.o		\
178	memcpy.o		\
179	memset.o		\
180	string.o		\
181	$(BOOT_DRIVER_OBJS)	\
182	$(DBOOT_OBJS_$(CLASS))
183
184#
185#			driver & misc modules
186#
187BALLOON_OBJS += balloon_drv.o
188DOMCAPS_OBJS += domcaps.o
189EVTCHN_OBJS += evtchn_dev.o
190GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
191		    gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o \
192		    gfxp_fb.o gfxp_bitmap.o
193IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
194ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
195PCI_E_NEXUS_OBJS += npe.o npe_misc.o
196PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
197PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
198PRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
199ROOTNEX_OBJS += rootnex.o
200XPVTOD_OBJS += xpvtod.o
201XPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
202XPV_PSM_OBJS += xpv_psm.o mp_platform_common.o mp_platform_xpv.o \
203		apic_regops.o psm_common.o xpv_intr.o
204XPV_UPPC_OBJS += xpv_uppc.o psm_common.o
205XENBUS_OBJS += xenbus_dev.o
206XENCONS_OBJS += xencons.o
207XPVD_OBJS += xpvd.o
208XPVTAP_OBJS += xpvtap.o blk_common.o seg_mf.o
209XNB_OBJS += xnb.o
210XNBE_OBJS += xnbe.o
211XNBO_OBJS += xnbo.o
212XNBU_OBJS += xnbu.o
213XNF_OBJS += xnf.o
214XSVC_OBJS += xsvc.o
215XDF_OBJS += xdf.o
216XDB_OBJS += xdb.o
217XDT_OBJS += xdt.o
218
219#
220#	Build up defines and paths.
221#
222INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common \
223	-I$(UTSBASE)/common/xen
224
225#
226# Since the assym files are derived, the dependencies must be explicit for
227# all files including this file.
228#
229
230ASSYM_DEPS      +=		\
231	copy.o			\
232	desctbls_asm.o		\
233	ddi_i86_asm.o		\
234	exception.o		\
235	fast_trap_asm.o		\
236	float.o			\
237	hyperevent.o		\
238	i86_subr.o		\
239	kdi_asm.o		\
240	interrupt.o		\
241	lock_prim.o		\
242	locore.o		\
243	panic_asm.o		\
244	sseblk.o		\
245	swtch.o			\
246	syscall_asm_amd64.o
247
248$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
249