From 72fa509fd860a2067416d50d74ff94501f4c175a Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <josef.schlehofer@nic.cz>
Date: Mon, 25 Feb 2019 13:40:41 +0100
Subject: [PATCH] compile_pkgs: by default use number of CPU instead of one job

---
 compile_pkgs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile_pkgs b/compile_pkgs
index d54dc7bd6..f84df5432 100755
--- a/compile_pkgs
+++ b/compile_pkgs
@@ -69,7 +69,7 @@ FORCE="" # Force build
 EVERYTHING="" # Set this variable to build all packages not only minimal set
 CLONE_DEEP="" # Set this variable to clone OpenWRT tree in full depth not just latest commit
 BUILD_ARGS=() # Additional arguments passed to OpenWRT make call (note that this is for all make calls in OpenWRT)
-BUILD_JOBS="1" # Number of jobs to be passed to make calls
+BUILD_JOBS="$(nproc)" # Number of jobs to be passed to make calls
 SIGN_KEY="" # Path to private signing key
 GIT_MIRROR="" # Path to git mirror directory
 DL_MIRROR="" # Path to downloads mirror directory
-- 
GitLab