From 79a5f5ddc20415d465fc4e72ebf42d9de563b41c Mon Sep 17 00:00:00 2001 From: Edward Hyunkoo Jee Date: Tue, 10 Nov 2015 11:26:05 -0800 Subject: [PATCH] Let the toolchain Makefile respect MAKE_JOBS enviroment variable Users may want to use environment variables or command-line arguments, instead of using Makelocal file. Signed-off-by: Edward Hyunkoo Jee --- tools/compilers/gcc-glibc/Makefile | 2 +- tools/compilers/gcc-glibc/Makelocal.template | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/compilers/gcc-glibc/Makefile b/tools/compilers/gcc-glibc/Makefile index a24fba9a5..55adf9eb9 100644 --- a/tools/compilers/gcc-glibc/Makefile +++ b/tools/compilers/gcc-glibc/Makefile @@ -1,5 +1,5 @@ # Number of make jobs to spawn. Define it in Makelocal -MAKE_JOBS := +MAKE_JOBS ?= $(shell expr `cat /proc/cpuinfo | grep processor | wc -l` - 1) BINUTILS_VERSION := 2.24 GCC_VERSION := 4.9.2 diff --git a/tools/compilers/gcc-glibc/Makelocal.template b/tools/compilers/gcc-glibc/Makelocal.template index 8f1dbb062..b01ed6e92 100644 --- a/tools/compilers/gcc-glibc/Makelocal.template +++ b/tools/compilers/gcc-glibc/Makelocal.template @@ -1,7 +1,3 @@ -# Number of make jobs to spawn. -MAKE_JOBS := $(shell expr `cat /proc/cpuinfo | grep processor | wc -l` - 1) - RISCV_INSTDIR := $(HOME)/install/riscv-ucb-akaros-gcc/ X86_64_INSTDIR := $(HOME)/install/x86_64-ucb-akaros-gcc/ X86_64_NATIVE_INSTDIR := $(HOME)/install/x86_64-ucb-akaros-gcc-native/ -