Merge branch '2020-04-25-master-imports'
[oweals/u-boot.git] / test / common.sh
index 702d1ed0513f51090143bc16c00f83bba93f4e24..904d579b7bfefcc5cbb1bba5afe61e396a26f472 100644 (file)
@@ -13,7 +13,7 @@ fail() {
 build_uboot() {
        echo "Build sandbox"
        OPTS="O=${OUTPUT_DIR} $1"
-       NUM_CPUS=$(grep -c processor /proc/cpuinfo)
+       NUM_CPUS=$(nproc)
        echo ${OPTS}
        make ${OPTS} sandbox_config
        make ${OPTS} -s -j${NUM_CPUS}