summaryrefslogtreecommitdiff
path: root/test/fs
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-01-27 07:59:46 +0100
committerTom Rini <trini@konsulko.com>2020-01-30 13:30:35 -0500
commit84f0415201e57e1919a2c91684e64bdedd85d159 (patch)
treea7965da1bac5321009bfe9e4919e5555c433c134 /test/fs
parent0f97e923d4921a057e1a7bbfac170cadefde5624 (diff)
downloadu-boot-84f0415201e57e1919a2c91684e64bdedd85d159.tar.gz
u-boot-84f0415201e57e1919a2c91684e64bdedd85d159.tar.bz2
u-boot-84f0415201e57e1919a2c91684e64bdedd85d159.zip
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 'test/fs')
-rwxr-xr-xtest/fs/fs-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh
index 721af71d44..b87748106c 100755
--- a/test/fs/fs-test.sh
+++ b/test/fs/fs-test.sh
@@ -87,7 +87,7 @@ function check_clean() {
# Generate sandbox U-Boot - gleaned from /test/dm/test-dm.sh
function compile_sandbox() {
unset CROSS_COMPILE
- NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
+ NUM_CPUS=$(nproc)
make O=sandbox sandbox_config
make O=sandbox -s -j${NUM_CPUS}