diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-27 07:59:46 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-30 13:30:35 -0500 |
commit | 84f0415201e57e1919a2c91684e64bdedd85d159 (patch) | |
tree | a7965da1bac5321009bfe9e4919e5555c433c134 /board/hisilicon/hikey/build-tf.mak | |
parent | 0f97e923d4921a057e1a7bbfac170cadefde5624 (diff) |
Consistently use nproc for counting the CPUs
Coreutils command nproc can be used on Linux and BSD to count the number of
available CPU cores. Use this instead of relying on the parsing of the
Linux specific proc file system.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'board/hisilicon/hikey/build-tf.mak')
-rw-r--r-- | board/hisilicon/hikey/build-tf.mak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hisilicon/hikey/build-tf.mak b/board/hisilicon/hikey/build-tf.mak index cebb34b61b..cde04827e8 100644 --- a/board/hisilicon/hikey/build-tf.mak +++ b/board/hisilicon/hikey/build-tf.mak @@ -1,6 +1,6 @@ CROSS_COMPILE := aarch64-linux-gnu- output_dir := $(PWD)/../bin -makejobs := $(shell grep '^processor' /proc/cpuinfo | sort -u | wc -l) +makejobs := $(nproc) makethreads := $(shell dc -e "$(makejobs) 1 + p") make_options := GCC49_AARCH64_PREFIX=$CROSS_COMPILE \ -j$(makethreads) -l$(makejobs) |