build: autobuild.sh now detects number of cpu cores
It was just using 16 make threads by default before. Now it uses the number of CPU cores. Change-Id: I695705eb73fc5f5ed3eafe1f85c686bde0e4b7d6 Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
d5cbe304b9
commit
a46c7d6fba
@ -7,10 +7,12 @@ case `uname` in
|
||||
FreeBSD)
|
||||
DPDK_DIR=/usr/local/share/dpdk/x86_64-native-bsdapp-clang
|
||||
MAKE=gmake
|
||||
MAKEFLAGS=${MAKEFLAGS:--j$(sysctl -a | egrep -i 'hw.ncpu' | awk '{print $2}')}
|
||||
;;
|
||||
Linux)
|
||||
DPDK_DIR=/usr/local/dpdk-2.1.0/x86_64-native-linuxapp-gcc
|
||||
MAKE=make
|
||||
MAKEFLAGS=${MAKEFLAGS:--j$(nproc)}
|
||||
MAKECONFIG="$MAKECONFIG CONFIG_COVERAGE=y"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user