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]
23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
25 # Copyright (c) 2010, Intel Corporation.
27 # This Makefile defines file modules in the directory uts/i86pc
28 # and its children. These are the source files which are i86pc
29 # "implementation architecture" dependent.
123 # Add the SMBIOS subsystem object files directly to the list of objects
124 # built into unix itself; this is all common code except for smb_dev.c.
126 CORE_OBJS += $(SMBIOS_OBJS)
129 # These get compiled twice:
130 # - once in the dboot (direct boot) identity mapped code
131 # - once for use during early startup in unix
136 boot_keyboard_table.o \
140 CORE_OBJS += $(BOOT_DRIVER_OBJS)
143 # locore.o is special. It must be the first file relocated so that it
144 # it is relocated just where its name implies.
158 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
161 # Objects that get compiled into the identity mapped PT_LOAD section of unix
162 # to handle the earliest part of booting.
166 DBOOT_OBJS_64 += dboot_elfload.o
178 $(BOOT_DRIVER_OBJS) \
179 $(DBOOT_OBJS_$(CLASS))
182 # driver and misc modules
184 GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
185 gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
186 FIPE_OBJS += fipe_drv.o fipe_pm.o
187 IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
188 ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
189 PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
190 PCI_E_NEXUS_OBJS += npe.o npe_misc.o
191 PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
192 PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
193 PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o \
194 mp_platform_common.o mp_platform_misc.o \
195 hpet_acpi.o apic_common.o apic_timer.o
196 APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \
197 apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \
201 ACPI_DRV_OBJS += acpi_drv.o acpi_video.o
202 ACPINEX_OBJS += acpinex_drv.o acpinex_event.o
208 PPM_OBJS += ppm_subr.o ppm.o ppm_plat.o
210 ACPIPPM_OBJS += acpippm.o acpisleep.o
211 ACPIDEV_OBJS += acpidev_drv.o \
212 acpidev_scope.o acpidev_device.o \
213 acpidev_container.o \
221 DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o
223 DR_OBJS += dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o
225 ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
226 immu_intrmap.o immu_qinv.o immu_regs.o
228 TZMON_OBJS += tzmon.o
229 UPPC_OBJS += uppc.o psm_common.o
231 AMD_IOMMU_OBJS += amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
232 amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
235 # Build up defines and paths.
238 INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common
239 INC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
242 # Since the assym files are derived, the dependencies must be explicit for
243 # all files including this file. (This is only actually required in the
244 # instance when the .nse_depinfo file does not exist.) It may seem that
245 # the lint targets should also have a similar dependency, but they don't
246 # since only C headers are included when #defined(__lint) is true.
264 syscall_asm_amd64.o \
267 CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o
269 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
271 ASSYM_DEPS += kdi_asm.o