custom FW repos code generation process toolset #5817
This commit is contained in:
parent
c4b88f5af3
commit
e1be1f25f3
0
firmware/config/boards/hellen/uaefi/compile_uaefi.sh → firmware/config/boards/hellen/uaefi/compile_firmware.sh
Executable file → Normal file
0
firmware/config/boards/hellen/uaefi/compile_uaefi.sh → firmware/config/boards/hellen/uaefi/compile_firmware.sh
Executable file → Normal 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
|
||||||
|
|
Loading…
Reference in New Issue