Replace "${MAKEOPTS/-j?/j1}" by "${MAKEOPTS} -j1" (bug #277607)

A call like

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

previously resulted in a make error.
cleanup-cruft
Sebastian Pipping 14 years ago
parent 48ca00ec29
commit 94f4e02816

@ -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

Loading…
Cancel
Save