Makefile.kmk revision 6b362bc00d2820ca57d348a77ddb1dc558dc94f8
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Top-level sub-makefile for the devices, drivers and services.
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Copyright (C) 2006-2012 Oracle Corporation
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# This file is part of VirtualBox Open Source Edition (OSE), as
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# available from http://www.virtualbox.org. This file is free software;
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# you can redistribute it and/or modify it under the terms of the GNU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# General Public License (GPL) as published by the Free Software
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# Foundation, in version 2 as it comes in the "COPYING" file of the
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
828c58761d90445b8b9d20a82d85dc1479317f71TrippSUB_DEPTH = ../../..
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippinclude $(KBUILD_PATH)/subheader.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp# Make sure our Config.kmk is included.
828c58761d90445b8b9d20a82d85dc1479317f71Trippifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
828c58761d90445b8b9d20a82d85dc1479317f71Tripp include $(PATH_SUB_CURRENT)/Config.kmk
828c58761d90445b8b9d20a82d85dc1479317f71Tripp# Include sub-makefiles.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippinclude $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippif defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippelse if defined(VBOX_WITH_PXE_ROM)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if !defined(VBOX_WITHOUT_ETHERBOOT)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/Etherboot-src/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if !defined(VBOX_WITHOUT_IPXE)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTrippif !defined(VBOX_ONLY_EXTPACKS) # Goes on almost to the end of the file.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # Main targets.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp LIBRARIES += ServicesR0
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp DLLS += VBoxDDU VBoxDD VBoxDD2
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp SYSMODS += VBoxDDR0 VBoxDD2R0
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_RAW_MODE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp SYSMODS += VBoxDDGC VBoxDD2GC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDU (shared object)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS = IN_VBOXDDU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_RUNTIME) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LIBS += \
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.darwin += -framework IOKit
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDU_LDFLAGS.l4 = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDULnxHostR3 (Only needed for l4, currently for executing vditool on L4Linux.)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp LIBRARIES += VBoxDDULnxHostR3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_TEMPLATE = VBOXLNXHOSTR3LIB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_DEFS = IN_VBOXDDU
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDULnxHostR3_SOURCES = $(VBoxDDU_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDD (shared object)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
9eaaa502227248d304ac9170902697d02158c1d9Tripp Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBoxDD_INCS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_ACPI \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_HGCM_HOST_CODE \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_WITH_HGCM \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBOX_WITH_DMI_CHASSIS \
9eaaa502227248d304ac9170902697d02158c1d9Tripp VBOX_WITH_DMI_OEMSTRINGS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET_ARCH),x86)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS = # more later.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework CoreAudio \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework AudioUnit \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework AudioToolbox \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework IOKit \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework Carbon \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp -framework DiskArbitration
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Tracing bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DTRACE_R3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DTRACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_USES += dtrace
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += build/VBoxDD.d
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Graphics bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_CRHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_CRHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOXWDDM_TEST_UHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOXWDDM_WITH_VBVA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIDEOHWACCEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDMA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VDMA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_VDMA_WITH_WATCHDOG
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PXE_ROM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PXE_ROM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- USB bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VUSB_HAVE_USBPROXY_DEVICE \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VUSB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Networking bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_INIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifndef VBOX_WITH_NEW_LWIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_INIP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(LWIP_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_INCS += $(LWIP_INCS)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += Network/DevINIP.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_UDPTUNNEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_VDE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NETSHAPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_NETSHAPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Storage bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_AHCI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_BUSLOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_LSILOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_LSILOGIC
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_ISCSI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DRV_DISK_INTEGRITY
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/StorageDbgLib$(VBOX_SUFF_LIB)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_EFI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_EFI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += EFI/DevEFI.cpp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_MSI_DEVICES
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Audio bits. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_ALSA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.linux += VBOX_WITH_ALSA
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.linux += VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.freebsd += VBOX_WITH_PULSE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- WARNING! SLIRP MESS AHEAD! ;-) ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SLIRP_BSD_SBUF
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_ALIAS_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # $(file)_DEFS or clean the code disabled with this definition.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # dump memory related operations.
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_NAT_UDP_SOCKET_CLONE),VBOX_WITH_NAT_UDP_SOCKET_CLONE,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS = -wd4018
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_alias_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += VBOX_SLIRP_ALIAS \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(1)/slirp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifneq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_CFLAGS += -Wno-shadow
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp define def_vbox_slirp_bsd_cflags
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_DEFS += VBOX_SLIRP_BSD
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(file)_INCS += $(1)/slirp/dnsproxy
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- OS specific driver hacks. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),darwin)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(filter-out Storage/DrvHostRaw% Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # darwin
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),freebsd)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES)) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # freebsd
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(error L4 is busted. Fix when needed.)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp #VBoxDD_SOURCES = filter needed
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),os2)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := $(filter-out Storage/DrvHost%, $(VBoxDD_SOURCES))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),solaris)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES := $(filter-out Storage/DrvHostFloppy%, $(VBoxDD_SOURCES))
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SOLARIS_OSS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_SOURCES += Audio/ossaudio.c
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_WITH_NETFLT)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS += VBOX_WITH_NETFLT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp if defined(VBOX_NETFLT_ONDEMAND_BIND)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # --- Final bits, mostly libraries for order dependant linkers. ---
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_VMM) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_RUNTIME)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),win)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(LIB_DDU) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_STAGE_LIB)/VBoxDD2.lib \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDDU_1_STAGE_TARGET) \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD2_1_STAGE_TARGET)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),l4)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_NETFLT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET),solaris)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += adm
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_SUID_WRAPPER
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += secdb
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_USB
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_LIBS += aio
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp else # !VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDD_CLEAN += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxaml.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(MV) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp --output $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxssdt-standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@ $@.tmp $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(MV) -f $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp --output $@ $@.tmp
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp $(QUIET)$(RM) -f $@.tmp $@.pre
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp endif # !VBOX_WITH_DYNAMIC_DSDT
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_RAW_MODE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp # VBoxDDGC (sysmod)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_TEMPLATE = VBoxRc
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifeq ($(KBUILD_TARGET_ARCH),x86)
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS = VBOX_WITH_HGCM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_INCS = build
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES = \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_E1000
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_SOURCES += \
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_HGSMI
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp VBoxDDGC_DEFS += VBOX_WITH_WDDM
09688ec5ffb8b9cf9883a770e2f9ebd60b28888dTripp ifdef VBOX_WITH_VDMA
$(if $(VBOX_WITH_PXE_ROM),$(if $(VBOX_WITHOUT_IPXE),$(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
$(L4_LIBDIR)/libl4sys.p.a
VBoxDD2_LIBS.darwin += $(LIB_REM)
VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
VBoxDD2_LDFLAGS.l4 = -Wl,--no-undefined
VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
# Ring-0 Services (library, linked into VMMR0.r0)
$(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
VBoxEhciR3_SOURCES = USB/DevEHCI.cpp
VBoxEhciR0_SOURCES = USB/DevEHCI.cpp
VBoxEhciRC_SOURCES = USB/DevEHCI.cpp
VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
Bus/DevPciRaw.cpp_INCS = Bus