VirtualBox

Ignore:
Timestamp:
Jun 2, 2016 1:06:58 PM (9 years ago)
Author:
vboxsync
Message:

Linux hosts / guests: try to build the modules parallel

File:
1 edited

Legend:

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

    r59453 r61411  
    7575obj-m += $(MODULE).o
    7676
     77JOBS := $(shell (getconf _NPROCESSORS_ONLN || grep -Ec '^processor|^CPU[0-9]' /proc/cpuinfo) 2>/dev/null)
     78ifeq ($(JOBS),0)
     79  JOBS := 1
     80endif
     81
    7782# OL/UEK: disable module signing for external modules -- we don't have any private key
    7883$(MODULE):
    79         $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
     84        $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) -j$(JOBS) modules
    8085
    8186modules_install:
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