cpuCount="$(grep -c '^processor' /proc/cpuinfo || echo 1)"
if [ -n "$NO_MODULES" ]; then
- make -j$((cpuCount*2)) "$@" EXTRAVERSION="$EXTRAVERSION" bzImage || exit $?
+ make -j$((cpuCount*2)) "$@" EXTRAVERSION="$EXTRAVERSION" bzImage scripts_gdb || exit $?
else
- make -j$((cpuCount*2)) "$@" EXTRAVERSION="$EXTRAVERSION" bzImage modules || exit $?
- make -j$((cpuCount*2)) "$@" EXTRAVERSION="$EXTRAVERSION" INSTALL_MOD_PATH="$(realpath ../root)" modules_install || exit $?
+ make -j$((cpuCount*2)) "$@" EXTRAVERSION="$EXTRAVERSION" bzImage modules scripts_gdb \
+ INSTALL_MOD_PATH="$(realpath ../root)" modules_install || exit $?
fi
rsync -avxHSPW arch/x86/boot/bzImage ../root/boot/vmlinuz