diff options
author | Damjan Marion <damarion@cisco.com> | 2016-03-24 17:19:27 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-03-24 17:20:14 +0100 |
commit | 2e89a894a46e6de80bdd3bcec184a53b32e5c091 (patch) | |
tree | 873f9d2d5cf213cef5c49fbb9c4e7a67f3e286e5 | |
parent | e2efecec426245163ae0abe00ca8ff368556c480 (diff) |
Reduce number of parallel gcc invocations from 4 to 2 per cpu
Some build hosts can run out of memory during compilation.
This should reduce memory demand without affecting build time.
Change-Id: I11bd2884a1f8885a8a332bbbf0a63324a3079c3b
Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r-- | build-root/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-root/Makefile b/build-root/Makefile index f8b2105c243..34d6c9dd28e 100644 --- a/build-root/Makefile +++ b/build-root/Makefile @@ -670,7 +670,7 @@ linux_n_cpus = `grep '^processor' /proc/cpuinfo | wc -l` MAKE_PARALLEL_JOBS = \ -j $(shell \ if [ -f /proc/cpuinfo ] ; then \ - expr 4 '*' $(linux_n_cpus) ; \ + expr 2 '*' $(linux_n_cpus) ; \ else \ echo 1 ; \ fi) |