From 2e89a894a46e6de80bdd3bcec184a53b32e5c091 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 24 Mar 2016 17:19:27 +0100 Subject: 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 --- build-root/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-root/Makefile') 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) -- cgit 1.2.3-korg