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/HostDrivers/VBoxNetAdp/linux/Makefile

    r61081 r61411  
    197197obj-m += $(MODULE).o
    198198
     199JOBS := $(shell (getconf _NPROCESSORS_ONLN || grep -Ec '^processor|^CPU[0-9]' /proc/cpuinfo) 2>/dev/null)
     200ifeq ($(JOBS),0)
     201  JOBS := 1
     202endif
     203
    199204# OL/UEK: disable module signing for external modules -- we don't have any private key
    200205$(MODULE):
    201         $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
     206        $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) -j$(JOBS) modules
    202207
    203208install: $(MODULE)
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