summaryrefslogtreecommitdiffstats
path: root/Config.in
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-15 10:21:24 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-15 10:21:24 +0000
commit1f87d10e85aab16cb28b36799ad37aa85f3e361f (patch)
tree7eae014a38c9914f9d45f1cecf614acaee6bd692 /Config.in
parent9d164b87caa6b1949e42dc3180c102207b276888 (diff)
build: add a config option for passing the top-level make jobserver to packages that have parallel build enabled, significantly improves parallelization and gets rid of CPU overcommit during intra-package parallel builds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33414 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/Config.in b/Config.in
index 403597804..36ca48881 100644
--- a/Config.in
+++ b/Config.in
@@ -311,12 +311,21 @@ menu "Global build settings"
If you are unsure, select N.
+ config PKG_BUILD_USE_JOBSERVER
+ bool
+ prompt "Use top-level make jobserver for packages"
+ depends on PKG_BUILD_PARALLEL
+ default y
+ help
+ This passes the main make process jobserver fds to package builds,
+ enabling full parallelization across different packages
+
config PKG_BUILD_JOBS
int
prompt "Number of package submake jobs (2-512)"
range 2 512
default 2
- depends on PKG_BUILD_PARALLEL
+ depends on PKG_BUILD_PARALLEL && !PKG_BUILD_USE_JOBSERVER
help
The number of jobs (-jX) to pass to packages submake.