Skip to content

Commit

Permalink
custom FW repos code generation process toolset #5817
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Jan 23, 2024
1 parent c4b88f5 commit e1be1f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
14 changes: 10 additions & 4 deletions misc/jenkins/compile_other_versions/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1be1f2

Please sign in to comment.