VirtualBox

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


Ignore:
Timestamp:
Mar 3, 2019 4:39:14 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129145
Message:

Installer/linux: Use M instead of SUBDIRS for kernel version 5 and higher. SUBDIRS is to be discontiuned in linux 5.3 they say. We can probably use M for older kernels too, but not in a mood to do testing building right now. bugref:9172

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

Legend:

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

    r77416 r77541  
    102102# OL/UEK: disable module signing for external modules -- we don't have any private key
    103103$(VBOXMOD_0_TARGET):
     104ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    104105        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
     106else
     107        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
     108endif
    105109
    106110install: $(VBOXMOD_0_TARGET)
     111ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    107112        $(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
     113else
     114        $(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
     115endif
    108116
    109117modules_install: install
    110118
    111119clean:
     120ifneq ($(VBOX_KERN_GROKS_SUBDIRS),)
    112121        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) clean
     122else
     123        $(MAKE) V=$(VBOX_LNX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) M=$(CURDIR) SRCROOT=$(CURDIR) clean
     124endif
    113125
    114126.PHONY: all $(VBOXMOD_0_TARGET) install modules_install clean
  • trunk/src/VBox/Installer/linux/Makefile-header.gmk

    r77504 r77541  
    126126  ifeq ($(shell if grep '"2\.6\.[012345][."]' $(KERN_DIR)/include/linux/version.h > /dev/null 2>&1; then echo yes; fi),yes)
    127127   VBOX_KERN_GROKS_EXTMOD :=
    128   else
    129   endif
    130  endif
    131 
     128  endif
     129  VBOX_KERN_GROKS_SUBDIRS  :=
     130  ifeq ($(shell if grep '"[432]\.' $(KERN_DIR)/include/linux/version.h > /dev/null 2>&1; then echo yes; fi),yes)
     131   VBOX_KERN_GROKS_SUBDIRS := yes
     132  endif
     133 endif
    132134else # neq($(KERNELRELEASE),)
    133135
     
    147149    VBOX_KERN_GROKS_EXTMOD :=
    148150   endif
     151  endif
     152  VBOX_KERN_GROKS_SUBDIRS  :=
     153  ifeq ($(VERSION),2)
     154   VBOX_KERN_GROKS_SUBDIRS := yes
     155  endif
     156  ifeq ($(VERSION),3)
     157   VBOX_KERN_GROKS_SUBDIRS := yes
     158  endif
     159  ifeq ($(VERSION),4)
     160   VBOX_KERN_GROKS_SUBDIRS := yes
    149161  endif
    150162 endif
Note: See TracChangeset for help on using the changeset viewer.

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