diff --git a/gen_compile.sh b/gen_compile.sh index 1cd1ebf..fb818a7 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -308,26 +308,30 @@ compile_modules() { print_info 1 " >> Compiling ${KV} modules..." cd ${KERNEL_DIR} compile_generic modules kernel - export UNAME_MACHINE="${ARCH}" - [ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH - if [ "${CMD_STRIP_TYPE}" == "all" -o "${CMD_STRIP_TYPE}" == "modules" ] - then - print_info 1 " >> Installing ${KV} modules (and stripping)" - INSTALL_MOD_STRIP=1 - export INSTALL_MOD_STRIP - else - print_info 1 " >> Installing ${KV} modules" - fi - MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel - print_info 1 " >> Generating module dependency data..." - if [ "${INSTALL_MOD_PATH}" != '' ] + + if isTrue "${CMD_INSTALL}" then - depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV} - else - depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV} + export UNAME_MACHINE="${ARCH}" + [ "${INSTALL_MOD_PATH}" != '' ] && export INSTALL_MOD_PATH + if [ "${CMD_STRIP_TYPE}" == "all" -o "${CMD_STRIP_TYPE}" == "modules" ] + then + print_info 1 " >> Installing ${KV} modules (and stripping)" + INSTALL_MOD_STRIP=1 + export INSTALL_MOD_STRIP + else + print_info 1 " >> Installing ${KV} modules" + fi + MAKEOPTS="${MAKEOPTS} -j1" compile_generic "modules_install" kernel + print_info 1 " >> Generating module dependency data..." + if [ "${INSTALL_MOD_PATH}" != '' ] + then + depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map -b "${INSTALL_MOD_PATH}" ${KV} + else + depmod -a -e -F "${KERNEL_OUTPUTDIR}"/System.map ${KV} + fi + unset UNAME_MACHINE + unset INSTALL_MOD_STRIP fi - unset UNAME_MACHINE - unset INSTALL_MOD_STRIP } compile_kernel() {