From 94f4e02816dd8300439a14537770e186f7884c0b Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 22 Jan 2011 01:15:12 +0100 Subject: [PATCH] Replace "${MAKEOPTS/-j?/j1}" by "${MAKEOPTS} -j1" (bug #277607) A call like genkernel kernel --menuconfig --makeopts="--jobs=50" previously resulted in a make error. --- gen_compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_compile.sh b/gen_compile.sh index febbcd3..2de867f 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -252,8 +252,8 @@ compile_generic() { # ARGS='CC="ccache gcc"' if [ "${argstype}" == 'runtask' ] then - print_info 2 "COMMAND: ${MAKE} ${MAKEOPTS/-j?/j1} ${ARGS} ${target} $*" 1 0 1 - eval ${MAKE} -s ${MAKEOPTS/-j?/-j1} "${ARGS}" ${target} $* + print_info 2 "COMMAND: ${MAKE} ${MAKEOPTS} -j1 ${ARGS} ${target} $*" 1 0 1 + eval ${MAKE} -s ${MAKEOPTS} -j1 "${ARGS}" ${target} $* RET=$? elif [ "${LOGLEVEL}" -gt "1" ] then -- 2.26.2