VirtualBox

Changeset 81763 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Nov 11, 2019 3:57:41 PM (5 years ago)
Author:
vboxsync
Message:

INstaller/linux: Honor VBOX_WITH_PCI_PASSTHROUGH during packing and modify vboxdrv.sh to not fail when vboxpci is not available

Location:
trunk/src/VBox/Installer/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r81386 r81763  
    417417include $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/linux/files_vboxnetadp
    418418VBOX_LNX_INST_FILES_VBOXNETADP=$(patsubst =>%,$(PATH_STAGE_BIN)/src/vboxnetadp/%,$(filter =>%,$(subst =>, =>,$(subst $(DQUOTE),,$(VBOX_VBOXNETADP_SOURCES)))))
    419 include $(PATH_ROOT)/src/VBox/HostDrivers/VBoxPci/linux/files_vboxpci
    420 VBOX_LNX_INST_FILES_VBOXPCI=$(patsubst =>%,$(PATH_STAGE_BIN)/src/vboxpci/%,$(filter =>%,$(subst =>, =>,$(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)))))
     419
     420ifdef VBOX_WITH_PCI_PASSTHROUGH
     421 include $(PATH_ROOT)/src/VBox/HostDrivers/VBoxPci/linux/files_vboxpci
     422 VBOX_LNX_INST_FILES_VBOXPCI=$(patsubst =>%,$(PATH_STAGE_BIN)/src/vboxpci/%,$(filter =>%,$(subst =>, =>,$(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)))))
     423endif
    421424
    422425VBOX_LNX_INST_ARCH_DEPS := \
     
    427430        $(VBOX_LNX_INST_FILES_VBOXNETFLT) \
    428431        $(VBOX_LNX_INST_FILES_VBOXNETADP) \
    429         $(VBOX_LNX_INST_FILES_VBOXPCI)
     432        $(if $(VBOX_WITH_PCI_PASSTHROUGH),$(VBOX_LNX_INST_FILES_VBOXPCI),)
    430433
    431434#
  • trunk/src/VBox/Installer/linux/vboxdrv.sh

    r79881 r81763  
    8888
    8989KERN_VER=`uname -r`
    90 MODULE_LIST="vboxdrv vboxnetflt vboxnetadp vboxpci"
     90if test -e "${MODULE_SRC}/vboxpci"; then
     91    MODULE_LIST="vboxdrv vboxnetflt vboxnetadp vboxpci"
     92else
     93    MODULE_LIST="vboxdrv vboxnetflt vboxnetadp"
     94fi
    9195# Secure boot state.
    9296case "`mokutil --sb-state 2>/dev/null`" in
     
    325329        failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
    326330    fi
    327     if ! $MODPROBE vboxpci > /dev/null 2>&1; then
     331    if test -e "${MODULE_SRC}/vboxpci" && ! $MODPROBE vboxpci > /dev/null 2>&1; then
    328332        failure "modprobe vboxpci failed. Please use 'dmesg' to find out why"
    329333    fi
     
    477481        failure "Look at $LOG to find out what went wrong"
    478482    fi
    479     log "Building the PCI pass-through module."
    480     if ! myerr=`$BUILDINTMP \
    481         --use-module-symvers /tmp/vboxdrv-Module.symvers \
    482         --module-source "$MODULE_SRC/vboxpci" \
    483         --no-print-directory install 2>&1`; then
    484         log "Error building the module:"
    485         module_build_log "$myerr"
    486         failure "Look at $LOG to find out what went wrong"
     483    if test -e "$MODULE_SRC/vboxpci"; then
     484        log "Building the PCI pass-through module."
     485        if ! myerr=`$BUILDINTMP \
     486            --use-module-symvers /tmp/vboxdrv-Module.symvers \
     487            --module-source "$MODULE_SRC/vboxpci" \
     488            --no-print-directory install 2>&1`; then
     489            log "Error building the module:"
     490            module_build_log "$myerr"
     491            failure "Look at $LOG to find out what went wrong"
     492        fi
    487493    fi
    488494    rm -f /etc/vbox/module_not_compiled
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