Skip to content

Commit 3ed4978

Browse files
committed
Add opta to release script
1 parent b108e3f commit 3ed4978

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

generate_rel.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,25 @@ echo
5959
echo Generating binaries for NICLA VISION
6060
mbed compile -c -m NICLA_VISION -t GCC_ARM --app=mbed_app_nicla_vision.json --profile=custom.json -N mcuboot_nicla_vision
6161
mkdir -p release/NICLA_VISION
62-
mv ./libbootutil.a ./release/NICLA_VISION
62+
cp ./libbootutil.a ./release/NICLA_VISION
6363
cp ./BUILD/NICLA_VISION/GCC_ARM-CUSTOM/mcuboot_nicla_vision.bin ./release/NICLA_VISION/mcuboot_nicla_vision.bin
6464
cp ./BUILD/NICLA_VISION/GCC_ARM-CUSTOM/mcuboot_nicla_vision_application.elf ./release/NICLA_VISION/mcuboot_nicla_vision.elf
6565
xxd -i ./release/NICLA_VISION/mcuboot_nicla_vision.bin > ./release/NICLA_VISION/mcuboot_nicla_vision.h
6666
sed -i "s/unsigned char __release_NICLA_VISION_mcuboot_nicla_vision_bin/const unsigned char mcuboot_nicla_vision_bin/" ./release/NICLA_VISION/mcuboot_nicla_vision.h
6767
sed -i "s/__release_NICLA_VISION_mcuboot_nicla_vision_bin_len/mcuboot_nicla_vision_bin_len/" ./release/NICLA_VISION/mcuboot_nicla_vision.h
6868
tar -czvf ./release/NICLA_VISION.tar.gz -C ./release/ NICLA_VISION
6969
fi
70+
71+
if [[ $1 == "opta" ]] || [[ $1 == "all" ]]; then
72+
echo
73+
echo Generating binaries for OPTA
74+
mbed compile -c -m OPTA -t GCC_ARM --app=mbed_app_opta.json --profile=custom.json -N mcuboot_opta
75+
mkdir -p release/OPTA
76+
mv ./libbootutil.a ./release/OPTA
77+
cp ./BUILD/OPTA/GCC_ARM-CUSTOM/mcuboot_opta.bin ./release/OPTA/mcuboot_opta.bin
78+
cp ./BUILD/OPTA/GCC_ARM-CUSTOM/mcuboot_opta_application.elf ./release/OPTA/mcuboot_opta.elf
79+
xxd -i ./release/OPTA/mcuboot_opta.bin > ./release/OPTA/mcuboot_opta.h
80+
sed -i "s/unsigned char __release_OPTA_mcuboot_opta_bin/const unsigned char mcuboot_opta_bin/" ./release/OPTA/mcuboot_opta.h
81+
sed -i "s/__release_OPTA_mcuboot_opta_bin_len/mcuboot_opta_bin_len/" ./release/OPTA/mcuboot_opta.h
82+
tar -czvf ./release/OPTA.tar.gz -C ./release/ OPTA
83+
fi

0 commit comments

Comments
 (0)