[Fuego] [PATCH 06/10] kernel_build: use nproc to guess the number of cores

Tim.Bird at sony.com Tim.Bird at sony.com
Tue Mar 27 21:44:19 UTC 2018



> -----Original Message-----
> From: Daniel Sangorrin
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> ---
>  engine/tests/Functional.kernel_build/fuego_test.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/engine/tests/Functional.kernel_build/fuego_test.sh
> b/engine/tests/Functional.kernel_build/fuego_test.sh
> index 6090af4..39e692c 100755
> --- a/engine/tests/Functional.kernel_build/fuego_test.sh
> +++ b/engine/tests/Functional.kernel_build/fuego_test.sh
> @@ -34,7 +34,7 @@ function test_build {
>      # Building
>      echo "Building Kernel"
>      if [ -z "$FUNCTIONAL_KERNEL_BUILD_PARAMS" ]; then
> -        FUNCTIONAL_KERNEL_BUILD_PARAMS="-j4 bzImage modules"
> +        FUNCTIONAL_KERNEL_BUILD_PARAMS="-j$(nproc) bzImage modules"

I thought nproc was a shell variable, and I was going to ask where it came from,
until I read this closer.

I didn't even know that the utility program 'nproc' existed.  Hmmm.  You learn
something new every day.

Nice enhancement.  Thanks,
 -- Tim



>      fi
> 
>      if [ ! -z "$FUNCTIONAL_KERNEL_BUILD_PLATFORM" ]; then
> --
> 2.7.4
> 
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list