build/base|kernel: only attempt build when passing "build" argument

Packaging can take some time so working on complex src patches is
quicker this way.
This commit is contained in:
Franco Fichtner 2021-08-19 10:18:45 +02:00
parent 45483f8986
commit cb0452bb17
2 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,9 @@ ${MAKE_ARGS_DEV}
"
${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} buildworld ${MAKE_ARGS} NO_CLEAN=yes
if [ "${1}" = "build" ]; then
exit 0
fi
${ENV_FILTER} make -s -C${SRCDIR}/release obj ${MAKE_ARGS}
# reset the distribution directory

View File

@ -62,6 +62,9 @@ if [ ${PRODUCT_HOST} != ${PRODUCT_ARCH} ]; then
${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} kernel-toolchain ${MAKE_ARGS}
fi
${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} buildkernel ${MAKE_ARGS} NO_KERNELCLEAN=yes
if [ "${1}" = "build" ]; then
exit 0
fi
${ENV_FILTER} make -s -C${SRCDIR}/release obj ${MAKE_ARGS}
# reset the distribution directory