From e1be1f25f3876b1e49c66a9acdd5f5f2b1cfb466 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 23 Jan 2024 17:48:50 -0500 Subject: [PATCH] custom FW repos code generation process toolset #5817 --- ...compile_alphax-2chan.sh => compile_firmware.sh} | 0 ...pile_hellen121nissan.sh => compile_firmware.sh} | 0 .../{compile_uaefi.sh => compile_firmware.sh} | 0 misc/jenkins/compile_other_versions/compile.sh | 14 ++++++++++---- 4 files changed, 10 insertions(+), 4 deletions(-) rename firmware/config/boards/hellen/alphax-2chan/{compile_alphax-2chan.sh => compile_firmware.sh} (100%) mode change 100755 => 100644 rename firmware/config/boards/hellen/hellen121nissan/{compile_hellen121nissan.sh => compile_firmware.sh} (100%) rename firmware/config/boards/hellen/uaefi/{compile_uaefi.sh => compile_firmware.sh} (100%) mode change 100755 => 100644 diff --git a/firmware/config/boards/hellen/alphax-2chan/compile_alphax-2chan.sh b/firmware/config/boards/hellen/alphax-2chan/compile_firmware.sh old mode 100755 new mode 100644 similarity index 100% rename from firmware/config/boards/hellen/alphax-2chan/compile_alphax-2chan.sh rename to firmware/config/boards/hellen/alphax-2chan/compile_firmware.sh diff --git a/firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh b/firmware/config/boards/hellen/hellen121nissan/compile_firmware.sh similarity index 100% rename from firmware/config/boards/hellen/hellen121nissan/compile_hellen121nissan.sh rename to firmware/config/boards/hellen/hellen121nissan/compile_firmware.sh diff --git a/firmware/config/boards/hellen/uaefi/compile_uaefi.sh b/firmware/config/boards/hellen/uaefi/compile_firmware.sh old mode 100755 new mode 100644 similarity index 100% rename from firmware/config/boards/hellen/uaefi/compile_uaefi.sh rename to firmware/config/boards/hellen/uaefi/compile_firmware.sh diff --git a/misc/jenkins/compile_other_versions/compile.sh b/misc/jenkins/compile_other_versions/compile.sh index 9522d384123..5b61b4a858a 100755 --- a/misc/jenkins/compile_other_versions/compile.sh +++ b/misc/jenkins/compile_other_versions/compile.sh @@ -16,16 +16,22 @@ echo "Entering $SCRIPT_NAME with folder $BOARD_DIR and bundle name $BUNDLE_NAME" [ -n $BUNDLE_NAME ] || { echo "BUNDLE_NAME parameter expected"; exit 1; } -COMPILE_SCRIPT="compile_$BUNDLE_NAME.sh" - cd firmware bash clean.sh cd .. -root_dir=$(pwd) - cd firmware/$BOARD_DIR pwd + +COMPILE_SCRIPT="compile_$BUNDLE_NAME.sh" +if [ -f $COMPILE_SCRIPT ]; then + # detailed compile script is useful for instance when same board has multiple MCU targets + echo "[$COMPILE_SCRIPT] found!" +else + echo "Using default script name..." + COMPILE_SCRIPT="compile_firmware.sh" +fi + echo "Invoking $COMPILE_SCRIPT" bash $COMPILE_SCRIPT