Replace "${MAKEOPTS/-j?/j1}" by "${MAKEOPTS} -j1" (bug #277607)
authorSebastian Pipping <sebastian@pipping.org>
Sat, 22 Jan 2011 00:15:12 +0000 (01:15 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 22 Jan 2011 00:15:14 +0000 (01:15 +0100)
A call like

  genkernel kernel --menuconfig --makeopts="--jobs=50"

previously resulted in a make error.

gen_compile.sh

index febbcd3e460374bb971a5d07fbe6c8661081e220..2de867ff71cfb3f965cc130d045c60e50cc92cc4 100755 (executable)
@@ -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