VirtualBox

Ignore:
Timestamp:
Jan 24, 2022 6:13:22 PM (3 years ago)
Author:
vboxsync
Message:

*.kmk: Introducing VBOX_WITH_R0_MODULES and VBOX_WITH_HWVIRT for helping with bugref:9898 and bugref:9044 (apple stuff at least).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r93361 r93419  
    5151 #
    5252 if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
    53   LIBRARIES += ServicesR0
    54   DLLS      += VBoxDDU VBoxDD VBoxDD2
    55   $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxDDR0
     53  DLLS       += VBoxDDU VBoxDD VBoxDD2
     54  ifdef VBOX_WITH_R0_MODULES
     55   LIBRARIES += ServicesR0
     56   ifdef VBOX_WITH_VBOXR0_AS_DLL
     57    DLLS     += VBoxDDR0
     58   else
     59    SYSMODS  += VBoxDDR0
     60   endif
     61  endif
    5662  ifdef VBOX_WITH_RAW_MODE
    5763   SYSMODS   += VBoxDDRC
    5864  endif
    5965 else
    60   DLLS      += VBoxDDU
     66  DLLS       += VBoxDDU
    6167 endif
    6268
     
    15151521  $(call VBOX_SET_VER_INFO_DLL,VBoxEhciR3,PUEL Extension Pack - EHCI Device)
    15161522
    1517   $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxEhciR0
    1518   VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
    1519   VBoxEhciR0_SOURCES  = \
    1520         USB/DevEHCI.cpp \
    1521         USB/DevXHCI.cpp
    1522   $(call VBOX_SET_VER_INFO_R0,VBoxEhciR0,PUEL Extension Pack - EHCI Device$(COMMA) ring-0)
    1523   ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
    1524    INSTALLS.linux += vbox_vboxehcir0-src
    1525    vbox_vboxehcir0-src_INST = bin/src/vbox_vboxehcir0/
    1526    vbox_vboxehcir0-src_SYMLINKS = \
    1527         SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
    1528         Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
    1529    vbox_vboxehcir0-src_SOURCES = \
    1530         $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxehcir0.gmk=>Makefile \
    1531         $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.r0=>VBoxEhciR0.r0 \
    1532         $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.debug=>VBoxEhciR0.debug
     1523  ifdef VBOX_WITH_R0_MODULES
     1524   ifdef VBOX_WITH_VBOXR0_AS_DLL
     1525    DLLS    += VBoxEhciR0
     1526   else
     1527    SYSMODS += VBoxEhciR0
     1528   endif
     1529   VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
     1530   VBoxEhciR0_SOURCES  = \
     1531        USB/DevEHCI.cpp \
     1532        USB/DevXHCI.cpp
     1533   $(call VBOX_SET_VER_INFO_R0,VBoxEhciR0,PUEL Extension Pack - EHCI Device$(COMMA) ring-0)
     1534   ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
     1535    INSTALLS.linux += vbox_vboxehcir0-src
     1536    vbox_vboxehcir0-src_INST = bin/src/vbox_vboxehcir0/
     1537    vbox_vboxehcir0-src_SYMLINKS = \
     1538        SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
     1539        Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
     1540    vbox_vboxehcir0-src_SOURCES = \
     1541        $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxehcir0.gmk=>Makefile \
     1542        $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.r0=>VBoxEhciR0.r0 \
     1543        $(VBoxEhciR0_0_OUTDIR)/VBoxEhciR0.debug=>VBoxEhciR0.debug
     1544   endif
    15331545  endif
    15341546
     
    15801592  $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
    15811593
    1582   $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxNvmeR0
    1583   VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
    1584   VBoxNvmeR0_SOURCES  = \
    1585         Storage/DevNVMe.cpp
    1586   $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
    1587   ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
    1588    INSTALLS.linux += vbox_vboxnvmer0-src
    1589    vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
    1590    vbox_vboxnvmer0-src_SYMLINKS = \
    1591         SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
    1592         Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
    1593    vbox_vboxnvmer0-src_SOURCES = \
    1594         $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
    1595         $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
    1596         $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
     1594  ifdef VBOX_WITH_R0_MODULES
     1595   ifdef VBOX_WITH_VBOXR0_AS_DLL
     1596    DLLS    += VBoxNvmeR0
     1597   else
     1598    SYSMODS += VBoxNvmeR0
     1599   endif
     1600   VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
     1601   VBoxNvmeR0_SOURCES  = \
     1602        Storage/DevNVMe.cpp
     1603   $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
     1604   ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
     1605    INSTALLS.linux += vbox_vboxnvmer0-src
     1606    vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
     1607    vbox_vboxnvmer0-src_SYMLINKS = \
     1608        SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
     1609        Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
     1610    vbox_vboxnvmer0-src_SOURCES = \
     1611        $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
     1612        $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
     1613        $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
     1614   endif
    15971615  endif
    15981616
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette