VirtualBox

Changeset 81760 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 11, 2019 2:29:16 PM (5 years ago)
Author:
vboxsync
Message:

Linux modules: Also force disabling of CONFIG_MODULE_SIG_ALL when building the kernel modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile-footer.gmk

    r78133 r81760  
    104104all: $(VBOXMOD_0_TARGET)
    105105
    106 # OL/UEK: disable module signing for external modules -- we don't have any private key
     106# OL/UEK: CONFIG_MODULE_SIG= disables module signing for external modules.
     107# Ubuntu 18.04.3: CONFIG_MODULE_SIG_ALL= disables signing of all modules.
     108# We disable signing because we don't have any private key and want to leave
     109# the key handling and secure boot config to the user.
    107110$(VBOXMOD_0_TARGET):
    108111ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    109         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
     112        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
    110113else
    111         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
     114        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
    112115endif
    113116
    114117install: $(VBOXMOD_0_TARGET)
    115118ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    116         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
     119        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
    117120else
    118         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
     121        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
    119122endif
    120123
     
    123126clean:
    124127ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    125         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) clean
     128        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) clean
    126129else
    127         $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) clean
     130        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) clean
    128131endif
    129132
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