Makefile.files revision 843e19887f64dde75055cf8842fc4db2171eff45
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER START
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# The contents of this file are subject to the terms of the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Common Development and Distribution License (the "License").
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You may not use this file except in compliance with the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# or http://www.opensolaris.org/os/licensing.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# See the License for the specific language governing permissions
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and limitations under the License.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# When distributing Covered Code, include this CDDL HEADER in each
843e19887f64dde75055cf8842fc4db2171eff45johnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# If applicable, add the following below this CDDL HEADER, with the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# fields enclosed by brackets "[]" replaced with your own identifying
843e19887f64dde75055cf8842fc4db2171eff45johnlev# information: Portions Copyright [yyyy] [name of copyright owner]
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CDDL HEADER END
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Use is subject to license terms.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev#ident "%Z%%M% %I% %E% SMI"
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# This Makefile defines file modules in the directory uts/i86xpv
843e19887f64dde75055cf8842fc4db2171eff45johnlev# and its children. These are the source files which are i86xpv
843e19887f64dde75055cf8842fc4db2171eff45johnlev# "implementation architecture" dependent.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# object lists
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevCORE_OBJS += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev balloon.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev beeper.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev biosdisk.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cbe.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cmi.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev confunix.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cpuid.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cpupm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dis_tables.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev ddi_impl.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dtrace_subr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dvma.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev fakebop.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev fpu_subr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev graphics.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hardclk.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hat_i86.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hat_kdi.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hment.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hold_page.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hrtimers.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev htable.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev i86_mmu.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev instr_size.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev intr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kboot_mmu.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kdi_subr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kdi_idt.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kdi_idthdl.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kdi_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev lgrpplat.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mach_kdi.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mach_sysconfig.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev machdep.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mem_config_stubs.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev memnode.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev microcode.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mlsetup.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mp_call.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mp_implfuncs.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mp_machdep.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mp_startup.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev memscrub.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev notes.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_bios.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_cfgspace.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_mech1.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_mech2.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_neptune.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pci_orion.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev pmem.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev ppage.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev startup.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xpv_timestamp.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev todpc_subr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev trap.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev vm_machdep.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev x_call.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Add the SMBIOS subsystem object files directly to the list of objects
843e19887f64dde75055cf8842fc4db2171eff45johnlev# built into unix itself; this is all common code except for smb_dev.c.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevCORE_OBJS += $(SMBIOS_OBJS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# These get compiled twice:
843e19887f64dde75055cf8842fc4db2171eff45johnlev# - once in the dboot (direct boot) identity mapped code
843e19887f64dde75055cf8842fc4db2171eff45johnlev# - once for use during early startup in unix
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevBOOT_DRIVER_OBJS = \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_console.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_keyboard.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_keyboard_table.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_mmu.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_vga.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev boot_xconsole.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevCORE_OBJS += $(BOOT_DRIVER_OBJS)
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Extra XEN files separated out for now.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevCORE_OBJS += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev cpr_driver.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev evtchn.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev gnttab.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hypercall.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hyperevent.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hypersubr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev mp_xen.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev panic_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xenguest.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xenbus_client.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xenbus_comms.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xenbus_probe.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xenbus_xs.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xen_machdep.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xen_mmu.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xpv_panic.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev xvdi.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# locore.o is special. It must be the first file relocated so that it
843e19887f64dde75055cf8842fc4db2171eff45johnlev# it is relocated just where its name implies.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevSPECIAL_OBJS_32 += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev locore.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev fast_trap_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev interrupt.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev syscall_asm.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevSPECIAL_OBJS_64 += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev locore.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev fast_trap_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev interrupt.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev syscall_asm_amd64.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevSPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# object files used to boot into full kernel
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevDBOOT_OBJS_32 = muldiv.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevDBOOT_OBJS_64 =
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevDBOOT_OBJS += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dboot_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dboot_printf.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dboot_startkern.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev dboot_xen.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hypercall.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hypersubr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev memcpy.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev memset.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev string.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev $(BOOT_DRIVER_OBJS) \
843e19887f64dde75055cf8842fc4db2171eff45johnlev $(DBOOT_OBJS_$(CLASS))
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# driver & misc modules
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevDOMCAPS_OBJS += domcaps.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevBALLOON_OBJS += balloon_drv.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevEVTCHN_OBJS += evtchn_dev.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevGFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevPCI_E_MISC_OBJS += pcie_error.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevPCI_E_NEXUS_OBJS += npe.o npe_misc.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevPCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevPCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevPRIVCMD_OBJS += seg_mf.o privcmd.o privcmd_hcall.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevROOTNEX_OBJS += rootnex.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXPVTOD_OBJS += xpvtod.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXPV_AUTOCONFIG_OBJS += xpv_autoconfig.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXPV_PSM_OBJS += xpv_psm.o mp_platform_common.o apic_introp.o psm_common.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXENBUS_OBJS += xenbus_dev.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXENCONS_OBJS += xencons.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXPVD_OBJS += xpvd.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXNB_OBJS += xnb.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXNBE_OBJS += xnbe.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXNBO_OBJS += xnbo.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXNBU_OBJS += xnbu.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXNF_OBJS += xnf.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXSVC_OBJS += xsvc.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXDF_OBJS += xdf.o
843e19887f64dde75055cf8842fc4db2171eff45johnlevXDB_OBJS += xdb.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Build up defines and paths.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlevINC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/i86pc -I$(SRC)/common
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Since the assym files are derived, the dependencies must be explicit for
843e19887f64dde75055cf8842fc4db2171eff45johnlev# all files including this file. (This is only actually required in the
843e19887f64dde75055cf8842fc4db2171eff45johnlev# instance when the .nse_depinfo file does not exist.) It may seem that
843e19887f64dde75055cf8842fc4db2171eff45johnlev# the lint targets should also have a similar dependency, but they don't
843e19887f64dde75055cf8842fc4db2171eff45johnlev# since only C headers are included when #defined(__lint) is true.
843e19887f64dde75055cf8842fc4db2171eff45johnlev#
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevASSYM_DEPS += \
843e19887f64dde75055cf8842fc4db2171eff45johnlev copy.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev desctbls_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev ddi_i86_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev exception.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev fast_trap_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev float.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev hyperevent.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev i86_subr.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev kdi_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev interrupt.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev lock_prim.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev locore.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev panic_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev sseblk.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev swtch.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev syscall_asm.o \
843e19887f64dde75055cf8842fc4db2171eff45johnlev syscall_asm_amd64.o
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlev$(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
843e19887f64dde75055cf8842fc4db2171eff45johnlev
843e19887f64dde75055cf8842fc4db2171eff45johnlevASSYM_DEPS += kdi_asm.o