From: Hugo Villeneuve Date: Tue, 16 Sep 2025 15:28:54 +0000 (-0400) Subject: hvk: reorder functions X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=c91d39a08a69260728e036ff11cb77b6453eb30e;p=hvutilities.git hvk: reorder functions No functional change intended. Signed-off-by: Hugo Villeneuve --- diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index 8031630..6db238b 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -82,29 +82,6 @@ if [ ! -f .config ]; then exit 1 fi -KMAKE="${KMAKE} ${warnings_opts}" - -if grep -q '^CONFIG_MODULES=y' .config; then - CONFIG_MODULES=1 -else - CONFIG_MODULES=0 -fi - -${KMAKE} - -if [ x"${mode}" = x"linux" ]; then - if [ x"${CONFIG_MODULES}" = x"1" ]; then - ${KMAKE} modules_prepare - ${KMAKE} modules - fi - - if [ x"${DTB_SRC}" != x"" ]; then - ${KMAKE} dtbs - fi -elif [ x"${mode}" = x"uboot" ]; then - ${KMAKE} u-boot-initial-env -fi - function rootfs_install() { mkdir -p ${deploydir} @@ -149,6 +126,29 @@ function rootfs_archive() { popd } +KMAKE="${KMAKE} ${warnings_opts}" + +if grep -q '^CONFIG_MODULES=y' .config; then + CONFIG_MODULES=1 +else + CONFIG_MODULES=0 +fi + +${KMAKE} + +if [ x"${mode}" = x"linux" ]; then + if [ x"${CONFIG_MODULES}" = x"1" ]; then + ${KMAKE} modules_prepare + ${KMAKE} modules + fi + + if [ x"${DTB_SRC}" != x"" ]; then + ${KMAKE} dtbs + fi +elif [ x"${mode}" = x"uboot" ]; then + ${KMAKE} u-boot-initial-env +fi + if [ "${archive}" = "1" ]; then rootfs_install rootfs_archive