From c91d39a08a69260728e036ff11cb77b6453eb30e Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 16 Sep 2025 11:28:54 -0400 Subject: [PATCH] hvk: reorder functions No functional change intended. Signed-off-by: Hugo Villeneuve --- scripts/hvk-compile.sh | 46 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) 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 -- 2.20.1