Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / i86pc / Makefile.files
blob1968e6114d3e8a52b556d0c043c41d0cc707fe90
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
25 # Copyright (c) 2010, Intel Corporation.
26 # Copyright 2018 Joyent, Inc.
28 #       This Makefile defines file modules in the directory uts/i86pc
29 #       and its children. These are the source files which are i86pc
30 #       "implementation architecture" dependent.
34 #       object lists
36 CORE_OBJS +=                    \
37         acpi_stubs.o            \
38         biosdisk.o              \
39         bios_call.o             \
40         cbe.o                   \
41         cmi.o                   \
42         cmi_hw.o                \
43         cms.o                   \
44         comm_page.o             \
45         confunix.o              \
46         cpu_idle.o              \
47         cpuid.o                 \
48         cpuid_subr.o            \
49         cpupm.o                 \
50         cpupm_mach.o            \
51         cpupm_amd.o             \
52         cpupm_intel.o           \
53         cpupm_throttle.o        \
54         cpu_acpi.o              \
55         dis_tables.o            \
56         ddi_impl.o              \
57         dtrace_subr_arch.o      \
58         dvma.o                  \
59         fpu_subr.o              \
60         fakebop.o               \
61         fastboot.o              \
62         fb_swtch.o              \
63         graphics.o              \
64         hardclk.o               \
65         hat_i86.o               \
66         hat_kdi.o               \
67         hma_fpu.o               \
68         hment.o                 \
69         hold_page.o             \
70         hrtimers.o              \
71         htable.o                \
72         hypersubr.o             \
73         i86_mmu.o               \
74         ibft.o                  \
75         instr_size.o            \
76         intr.o                  \
77         kboot_mmu.o             \
78         kdi_idt.o               \
79         kdi_idthdl.o            \
80         kdi_asm.o               \
81         lgrpplat.o              \
82         mach_kdi.o              \
83         mach_sysconfig.o        \
84         machdep.o               \
85         mem_config.o            \
86         mem_config_stubs.o      \
87         mem_config_arch.o       \
88         memlist_new.o           \
89         memnode.o               \
90         microcode.o             \
91         microfind.o             \
92         mlsetup.o               \
93         mp_call.o               \
94         mp_implfuncs.o          \
95         mp_machdep.o            \
96         mp_pc.o                 \
97         mp_startup.o            \
98         memscrub.o              \
99         mpcore.o                \
100         notes.o                 \
101         pci_bios.o              \
102         pci_cfgacc.o            \
103         pci_cfgacc_x86.o        \
104         pci_cfgspace.o          \
105         pci_mech1.o             \
106         pci_mech1_amd.o         \
107         pci_mech2.o             \
108         pci_neptune.o           \
109         pci_orion.o             \
110         pmem.o                  \
111         ppage.o                 \
112         pwrnow.o                \
113         speedstep.o             \
114         ssp.o                   \
115         startup.o               \
116         timestamp.o             \
117         todpc_subr.o            \
118         trap.o                  \
119         turbo.o                 \
120         vm_machdep.o            \
121         x_call.o
124 #       Add the SMBIOS subsystem object files directly to the list of objects
125 #       built into unix itself; this is all common code except for smb_dev.c.
127 CORE_OBJS += $(SMBIOS_OBJS)
130 # These get compiled twice:
131 # - once in the dboot (direct boot) identity mapped code
132 # - once for use during early startup in unix
134 BOOT_DRIVER_OBJS =              \
135         boot_console.o          \
136         boot_keyboard.o         \
137         boot_keyboard_table.o   \
138         boot_vga.o              \
139         boot_mmu.o              \
140         dboot_multiboot2.o      \
141         $(FONT_OBJS)
143 CORE_OBJS += $(BOOT_DRIVER_OBJS)
146 #       locore.o is special. It must be the first file relocated so that it
147 #       it is relocated just where its name implies.
149 SPECIAL_OBJS_32 +=              \
150         locore.o                \
151         fast_trap_asm.o         \
152         interrupt.o             \
153         syscall_asm_32.o
155 SPECIAL_OBJS_64 +=              \
156         locore.o                \
157         fast_trap_asm.o         \
158         interrupt.o             \
159         syscall_asm_64.o        \
160         kpti_trampolines.o
162 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
165 # Objects that get compiled into the identity mapped PT_LOAD section of unix
166 # to handle the earliest part of booting.
168 DBOOT_OBJS_32 =
170 DBOOT_OBJS_64 += dboot_elfload.o
172 DBOOT_OBJS +=                   \
173         dboot_asm.o             \
174         dboot_grub.o            \
175         dboot_printf.o          \
176         dboot_startkern.o       \
177         memcpy.o                \
178         memset.o                \
179         muldiv.o                \
180         sha1.o                  \
181         string.o                \
182         $(BOOT_DRIVER_OBJS)     \
183         $(DBOOT_OBJS_$(CLASS))
186 #                       driver and misc modules
188 GFX_PRIVATE_OBJS        += gfx_private.o gfxp_pci.o gfxp_segmap.o \
189                            gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
190 FIPE_OBJS += fipe_drv.o fipe_pm.o
191 IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
192 ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
193 PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
194 PCI_E_NEXUS_OBJS += npe.o npe_misc.o
195 PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
196 PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
197 PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o        \
198                         mp_platform_common.o mp_platform_misc.o         \
199                         hpet_acpi.o apic_common.o apic_timer.o
200 APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \
201                 apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \
202                 apic_timer.o apix_regops.o
205 ACPI_DRV_OBJS   += acpi_drv.o acpi_video.o
206 ACPINEX_OBJS    += acpinex_drv.o acpinex_event.o
208 CPUDRV_OBJS     += \
209         cpudrv.o \
210         cpudrv_mach.o
212 PPM_OBJS        += ppm_subr.o ppm.o ppm_plat.o
214 ACPIPPM_OBJS    += acpippm.o acpisleep.o
215 ACPIDEV_OBJS += acpidev_drv.o \
216         acpidev_scope.o acpidev_device.o \
217         acpidev_container.o \
218         acpidev_cpu.o \
219         acpidev_dr.o \
220         acpidev_memory.o \
221         acpidev_pci.o \
222         acpidev_resource.o \
223         acpidev_util.o
225 DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o
227 DR_OBJS += dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o
229 ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
230                 immu_intrmap.o immu_qinv.o immu_regs.o
232 TZMON_OBJS      += tzmon.o
233 UPPC_OBJS += uppc.o psm_common.o
234 XSVC_OBJS += xsvc.o
235 AMD_IOMMU_OBJS +=       amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
236                         amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
239 #       Build up defines and paths.
241 ALL_DEFS        += -Di86pc
242 INC_PATH        += -I$(SRCTOP)/include
243 INC_PATH        += -I$(SRCTOP)/arch/x86/kernel/include
244 INC_PATH        += -I$(UTSBASE)/i86pc -I$(SRC)/common
247 # Since the assym files are derived, the dependencies must be explicit for
248 # all files including this file. (This is only actually required in the
249 # instance when the .nse_depinfo file does not exist.)
252 ASSYM_DEPS      +=              \
253         copy.o                  \
254         desctbls_asm.o          \
255         ddi_i86_asm.o           \
256         exception.o             \
257         fast_trap_asm.o         \
258         float.o                 \
259         i86_subr.o              \
260         interrupt.o             \
261         lock_prim.o             \
262         locore.o                \
263         mpcore.o                \
264         sseblk.o                \
265         swtch.o                 \
266         syscall_asm_32.o        \
267         syscall_asm_64.o        \
268         kpti_trampolines.o      \
269         cpr_wakecode.o
271 CPR_IMPL_OBJS   = cpr_impl.o    cpr_wakecode.o
273 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):      $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h