File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 59
59
echo Generating binaries for NICLA VISION
60
60
mbed compile -c -m NICLA_VISION -t GCC_ARM --app=mbed_app_nicla_vision.json --profile=custom.json -N mcuboot_nicla_vision
61
61
mkdir -p release/NICLA_VISION
62
- mv ./libbootutil.a ./release/NICLA_VISION
62
+ cp ./libbootutil.a ./release/NICLA_VISION
63
63
cp ./BUILD/NICLA_VISION/GCC_ARM-CUSTOM/mcuboot_nicla_vision.bin ./release/NICLA_VISION/mcuboot_nicla_vision.bin
64
64
cp ./BUILD/NICLA_VISION/GCC_ARM-CUSTOM/mcuboot_nicla_vision_application.elf ./release/NICLA_VISION/mcuboot_nicla_vision.elf
65
65
xxd -i ./release/NICLA_VISION/mcuboot_nicla_vision.bin > ./release/NICLA_VISION/mcuboot_nicla_vision.h
66
66
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
67
67
sed -i " s/__release_NICLA_VISION_mcuboot_nicla_vision_bin_len/mcuboot_nicla_vision_bin_len/" ./release/NICLA_VISION/mcuboot_nicla_vision.h
68
68
tar -czvf ./release/NICLA_VISION.tar.gz -C ./release/ NICLA_VISION
69
69
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
You can’t perform that action at this time.
0 commit comments