summaryrefslogtreecommitdiff
path: root/include/toplevel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-15 10:21:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-15 10:21:24 +0000
commitbe6f4376498d15b3465027bd78de3a878a862023 (patch)
tree1d3d8209907a82535a97acb7ae0efbc75b870112 /include/toplevel.mk
parented14ffc7da8f2e544c3af0c943e651510cf8341d (diff)
downloadmtk-20170518-be6f4376498d15b3465027bd78de3a878a862023.zip
mtk-20170518-be6f4376498d15b3465027bd78de3a878a862023.tar.gz
mtk-20170518-be6f4376498d15b3465027bd78de3a878a862023.tar.bz2
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
SVN-Revision: 33414
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index d37ddb9..ba5af9c 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -148,7 +148,7 @@ prereq:: prepare-tmpinfo .config
echo "WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!"; \
fi \
)
- @+$(SUBMAKE) -r $@
+ @+$(SUBMAKE) -r $@ MAKE_JOBSERVER="$(filter --jobserver% -j,$(MAKEFLAGS))"
help:
cat README