Home | History | Annotate | Download | only in i86pc
      1      0    stevel #
      2      0    stevel # CDDL HEADER START
      3      0    stevel #
      4      0    stevel # The contents of this file are subject to the terms of the
      5   1106       mrj # Common Development and Distribution License (the "License").
      6   1106       mrj # You may not use this file except in compliance with the License.
      7      0    stevel #
      8      0    stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9      0    stevel # or http://www.opensolaris.org/os/licensing.
     10      0    stevel # See the License for the specific language governing permissions
     11      0    stevel # and limitations under the License.
     12      0    stevel #
     13      0    stevel # When distributing Covered Code, include this CDDL HEADER in each
     14      0    stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15      0    stevel # If applicable, add the following below this CDDL HEADER, with the
     16      0    stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17      0    stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18      0    stevel #
     19      0    stevel # CDDL HEADER END
     20      0    stevel #
     21   1106       mrj 
     22      0    stevel #
     23   8693     Kerry # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     24      0    stevel # Use is subject to license terms.
     25      0    stevel #
     26   1167    kupfer #	This Makefile defines file modules in the directory uts/i86pc
     27   1167    kupfer #	and its children. These are the source files which are i86pc
     28      0    stevel #	"implementation architecture" dependent.
     29      0    stevel #
     30      0    stevel 
     31      0    stevel #
     32      0    stevel #	object lists
     33      0    stevel #
     34      0    stevel CORE_OBJS +=			\
     35   5295    randyf 	acpi_stubs.o		\
     36      0    stevel 	biosdisk.o		\
     37   3446       mrj 	bios_call.o		\
     38      0    stevel 	cbe.o			\
     39   1414     cindi 	cmi.o			\
     40   5254    gavinm 	cmi_hw.o		\
     41   5254    gavinm 	cms.o			\
     42      0    stevel 	confunix.o		\
     43   8906      Eric 	cpu_idle.o		\
     44      0    stevel 	cpuid.o			\
     45   7532      Sean 	cpuid_subr.o		\
     46   4667   mh27603 	cpupm.o			\
     47   8906      Eric 	cpupm_mach.o		\
     48   8906      Eric 	cpupm_amd.o		\
     49   8906      Eric 	cpupm_intel.o		\
     50   8906      Eric 	cpupm_throttle.o	\
     51   8906      Eric 	cpu_acpi.o		\
     52      0    stevel 	dis_tables.o		\
     53      0    stevel 	ddi_impl.o		\
     54      0    stevel 	dtrace_subr.o		\
     55      0    stevel 	dvma.o			\
     56   3446       mrj 	fpu_subr.o		\
     57   3446       mrj 	fakebop.o		\
     58   7656    Sherry 	fastboot.o		\
     59   7656    Sherry 	fb_swtch.o		\
     60      0    stevel 	graphics.o		\
     61   3446       mrj 	hardclk.o		\
     62      0    stevel 	hat_i86.o		\
     63      0    stevel 	hat_kdi.o		\
     64      0    stevel 	hment.o			\
     65   3446       mrj 	hold_page.o		\
     66      0    stevel 	hrtimers.o		\
     67      0    stevel 	htable.o		\
     68  10175    Stuart 	hypercall.o		\
     69  10175    Stuart 	hypersubr.o		\
     70   3446       mrj 	i86_mmu.o		\
     71   8194      Jack 	ibft.o			\
     72      0    stevel 	instr_size.o		\
     73      0    stevel 	intr.o			\
     74   3446       mrj 	kboot_mmu.o		\
     75   3446       mrj 	kdi_subr.o		\
     76   3446       mrj 	kdi_idt.o		\
     77   3446       mrj 	kdi_idthdl.o		\
     78   3446       mrj 	kdi_asm.o		\
     79      0    stevel 	lgrpplat.o		\
     80      0    stevel 	mach_kdi.o		\
     81      0    stevel 	mach_sysconfig.o	\
     82      0    stevel 	machdep.o		\
     83      0    stevel 	mem_config_stubs.o	\
     84      0    stevel 	memnode.o		\
     85   4581   sherrym 	microcode.o		\
     86   5084   johnlev 	microfind.o		\
     87      0    stevel 	mlsetup.o		\
     88      0    stevel 	mp_call.o		\
     89      0    stevel 	mp_implfuncs.o		\
     90      0    stevel 	mp_machdep.o		\
     91   3446       mrj 	mp_pc.o			\
     92      0    stevel 	mp_startup.o		\
     93      0    stevel 	memscrub.o		\
     94      0    stevel 	mpcore.o		\
     95      0    stevel 	notes.o			\
     96   1494        jg 	pci_bios.o		\
     97    748     dmick 	pci_cfgspace.o		\
     98    748     dmick 	pci_mech1.o		\
     99    748     dmick 	pci_mech2.o		\
    100    748     dmick 	pci_neptune.o		\
    101    748     dmick 	pci_orion.o		\
    102      0    stevel 	pmem.o			\
    103      0    stevel 	ppage.o			\
    104   8906      Eric 	pwrnow.o		\
    105   8906      Eric 	speedstep.o		\
    106      0    stevel 	startup.o		\
    107      0    stevel 	timestamp.o		\
    108   3446       mrj 	todpc_subr.o		\
    109      0    stevel 	trap.o			\
    110      0    stevel 	vm_machdep.o		\
    111  10175    Stuart 	xpv_platform.o		\
    112      0    stevel 	x_call.o
    113    437       mws 
    114    437       mws #
    115    437       mws #	Add the SMBIOS subsystem object files directly to the list of objects
    116    437       mws #	built into unix itself; this is all common code except for smb_dev.c.
    117    437       mws #
    118    437       mws CORE_OBJS += $(SMBIOS_OBJS)
    119   3446       mrj 
    120   3446       mrj #
    121   3446       mrj # These get compiled twice:
    122   6318       edp # - once in the dboot (direct boot) identity mapped code
    123   3446       mrj # - once for use during early startup in unix
    124   3446       mrj #
    125   3446       mrj BOOT_DRIVER_OBJS =		\
    126   3446       mrj 	boot_console.o		\
    127   3446       mrj 	boot_keyboard.o		\
    128   3446       mrj 	boot_keyboard_table.o	\
    129   3446       mrj 	boot_vga.o		\
    130   3446       mrj 	boot_mmu.o
    131   3446       mrj 
    132   3446       mrj CORE_OBJS += $(BOOT_DRIVER_OBJS)
    133      0    stevel 
    134      0    stevel #
    135      0    stevel #	locore.o is special. It must be the first file relocated so that it
    136      0    stevel #	it is relocated just where its name implies.
    137      0    stevel #
    138      0    stevel SPECIAL_OBJS_32 +=		\
    139      0    stevel 	locore.o		\
    140      0    stevel 	fast_trap_asm.o		\
    141      0    stevel 	interrupt.o		\
    142      0    stevel 	syscall_asm.o
    143      0    stevel 
    144      0    stevel SPECIAL_OBJS_64 +=		\
    145      0    stevel 	locore.o		\
    146      0    stevel 	fast_trap_asm.o		\
    147      0    stevel 	interrupt.o		\
    148      0    stevel 	syscall_asm_amd64.o
    149      0    stevel 
    150      0    stevel SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
    151      0    stevel 
    152      0    stevel #
    153   3446       mrj # Objects that get compiled into the identity mapped PT_LOAD section of unix
    154   3446       mrj # to handle the earliest part of booting.
    155      0    stevel #
    156   3446       mrj DBOOT_OBJS_32 =
    157   3446       mrj 
    158   3446       mrj DBOOT_OBJS_64 += dboot_elfload.o
    159   3446       mrj 
    160   3446       mrj DBOOT_OBJS +=			\
    161   5084   johnlev 	dboot_asm.o		\
    162   3446       mrj 	dboot_grub.o		\
    163   5084   johnlev 	dboot_printf.o		\
    164   3446       mrj 	dboot_startkern.o	\
    165   3446       mrj 	memcpy.o		\
    166   3446       mrj 	memset.o		\
    167   3446       mrj 	muldiv.o		\
    168   3446       mrj 	string.o		\
    169   3446       mrj 	$(BOOT_DRIVER_OBJS)	\
    170   3446       mrj 	$(DBOOT_OBJS_$(CLASS))
    171   3446       mrj 
    172   3446       mrj #
    173   3446       mrj #			driver and misc modules
    174   3446       mrj #
    175   3446       mrj GFX_PRIVATE_OBJS	+= gfx_private.o gfxp_pci.o gfxp_segmap.o \
    176   3446       mrj 			   gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
    177   9638     Randy FIPE_OBJS += fipe_drv.o fipe_pm.o
    178   6707    brutus IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
    179      0    stevel ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
    180  10923      Evan PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
    181   6318       edp PCI_E_NEXUS_OBJS += npe.o npe_misc.o
    182   3446       mrj PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
    183    916  schwartz PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
    184   8906      Eric PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o	\
    185   8906      Eric 			mp_platform_common.o hpet_acpi.o
    186   1709       mlf 
    187   8693     Kerry ACPI_DRV_OBJS	+= acpi_drv.o acpi_video.o
    188  10394   Michael ACPINEX_OBJS	+= acpinex_drv.o
    189   1414     cindi 
    190   7319      Mark CPUDRV_OBJS	+= \
    191   7319      Mark 	cpudrv.o \
    192   8906      Eric 	cpudrv_mach.o
    193   7319      Mark 
    194   4667   mh27603 PPM_OBJS	+= ppm_subr.o ppm.o ppm_plat.o
    195   4667   mh27603 
    196   5295    randyf ACPIPPM_OBJS	+= acpippm.o acpisleep.o
    197  10394   Michael ACPIDEV_OBJS += acpidev_drv.o \
    198  10394   Michael 	acpidev_scope.o acpidev_device.o \
    199  10394   Michael 	acpidev_container.o \
    200  10394   Michael 	acpidev_cpu.o \
    201  10394   Michael 	acpidev_memory.o \
    202  10394   Michael 	acpidev_resource.o \
    203  10394   Michael 	acpidev_util.o
    204   5295    randyf 
    205   7589    Vikram ROOTNEX_OBJS += rootnex.o iommu_rscs.o dmar_acpi.o intel_iommu.o
    206   3446       mrj TZMON_OBJS	+= tzmon.o
    207      0    stevel UPPC_OBJS += uppc.o psm_common.o
    208   3446       mrj XSVC_OBJS += xsvc.o
    209  10566    Vikram AMD_IOMMU_OBJS +=	amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
    210  10566    Vikram 			amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
    211    945    rugrat 
    212      0    stevel #
    213      0    stevel #	Build up defines and paths.
    214      0    stevel #
    215      0    stevel ALL_DEFS	+= -Di86pc
    216   3446       mrj INC_PATH	+= -I$(UTSBASE)/i86pc -I$(SRC)/common
    217  10175    Stuart INC_PATH	+= -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
    218      0    stevel 
    219      0    stevel #
    220   3446       mrj # Since the assym files are derived, the dependencies must be explicit for
    221      0    stevel # all files including this file. (This is only actually required in the
    222      0    stevel # instance when the .nse_depinfo file does not exist.) It may seem that
    223      0    stevel # the lint targets should also have a similar dependency, but they don't
    224      0    stevel # since only C headers are included when #defined(__lint) is true.
    225      0    stevel #
    226   3446       mrj 
    227      0    stevel ASSYM_DEPS      += 		\
    228      0    stevel 	copy.o			\
    229      0    stevel 	desctbls_asm.o		\
    230      0    stevel 	ddi_i86_asm.o		\
    231      0    stevel 	exception.o		\
    232      0    stevel 	fast_trap_asm.o		\
    233      0    stevel 	float.o			\
    234      0    stevel 	i86_subr.o		\
    235      0    stevel 	interrupt.o		\
    236      0    stevel 	lock_prim.o		\
    237      0    stevel 	locore.o		\
    238      0    stevel 	mpcore.o		\
    239      0    stevel 	sseblk.o		\
    240      0    stevel 	swtch.o			\
    241      0    stevel 	syscall_asm.o		\
    242   5295    randyf 	syscall_asm_amd64.o	\
    243   5295    randyf 	cpr_wakecode.o
    244   5295    randyf 
    245   5295    randyf CPR_IMPL_OBJS	= cpr_impl.o	cpr_wakecode.o
    246   3446       mrj 
    247   3446       mrj $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%):	$(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
    248   3446       mrj 
    249   3446       mrj ASSYM_DEPS += kdi_asm.o
    250