From 8c14aea36db58f7eb1a7ee34f4c9dd440831f1df Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 11 Oct 2023 11:35:50 -0400 Subject: [PATCH] hvk: fix MAKEJOBS arguments to KMAKE --- scripts/hvk-common.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/hvk-common.sh b/scripts/hvk-common.sh index 02db032..fb03814 100644 --- a/scripts/hvk-common.sh +++ b/scripts/hvk-common.sh @@ -20,9 +20,13 @@ else source ${SCRIPTPATH}/hvk-x86.sh fi -: ${MAKEJOBS:="-j$(nproc)"} +: ${MAKEJOBS:="$(nproc)"} -KMAKE="make ${MAKEJOBS}" +if [ x"${MAKEJOBS}" != x"" ]; then + MAKEJOBS_ARG="-j ${MAKEJOBS}" +fi + +KMAKE="make ${MAKEJOBS_ARG}" # Needed to compile sample userspace programs (rtc-test): export CROSS_COMPILE_KCFLAGS=${KCFLAGS} -- 2.20.1