custom FW repos code generation process toolset #5817

This commit is contained in:
rusefillc 2024-01-23 17:48:50 -05:00
parent c4b88f5af3
commit e1be1f25f3
4 changed files with 10 additions and 4 deletions

View File

@ -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; } [ -n $BUNDLE_NAME ] || { echo "BUNDLE_NAME parameter expected"; exit 1; }
COMPILE_SCRIPT="compile_$BUNDLE_NAME.sh"
cd firmware cd firmware
bash clean.sh bash clean.sh
cd .. cd ..
root_dir=$(pwd)
cd firmware/$BOARD_DIR cd firmware/$BOARD_DIR
pwd 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" echo "Invoking $COMPILE_SCRIPT"
bash $COMPILE_SCRIPT bash $COMPILE_SCRIPT