@@ -3,7 +3,7 @@ rm -rf release
33rm -rf BUILD
44
55if [[ $1 == " library" ]] || [[ $1 == " all" ]]; then
6- mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_bootutil.json -DBOOTUTIL_LIBARY_BUILD=1
6+ mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_bootutil.json
77echo
88echo Generating bootutil library
99find ./BUILD/PORTENTA_H7_M7/GCC_ARM/ \( -name " FileBlockDevice.o" -o -name " BSP.o" -o -name " SDMMCBlockDevice.o" -o -name " rtc.o" -o -name " default_bd.o" -o -name " bootutil_extra.o" -o -name " flash_map_backend.o" -o -name " bootutil_public.o" \) | xargs arm-none-eabi-ar -csr libbootutil.a
1414if [[ $1 == " portenta" ]] || [[ $1 == " all" ]]; then
1515echo
1616echo Generating binaries for PORTENTA H7
17- mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --profile=release --profile mbed-os/tools/profiles/extensions/lto .json -N mcuboot_portenta_h7
17+ mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_portenta.json -- profile=release --profile custom .json -N mcuboot_portenta_h7
1818mkdir -p release/PORTENTA_H7
1919cp ./libbootutil.a ./release/PORTENTA_H7
2020cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7.bin ./release/PORTENTA_H7/mcuboot_portenta_h7.bin
2828if [[ $1 == " lite" ]] || [[ $1 == " all" ]]; then
2929echo
3030echo Generating binaries for PORTENTA H7 Lite
31- mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --profile=release --profile mbed-os/tools/profiles/extensions/lto .json -DBOARD_HAS_VIDEO=0 -DBOARD_HAS_WIFI=0 -N mcuboot_portenta_h7_lite
31+ mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_portenta_lite.json -- profile=release --profile custom .json -N mcuboot_portenta_h7_lite
3232mkdir -p release/PORTENTA_H7_Lite
3333cp ./libbootutil.a ./release/PORTENTA_H7_Lite
3434cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7_lite.bin ./release/PORTENTA_H7_Lite/mcuboot_portenta_h7_lite.bin
4242if [[ $1 == " connected" ]] || [[ $1 == " all" ]]; then
4343echo
4444echo Generating binaries for PORTENTA H7 Lite Connected
45- mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --profile=release --profile mbed-os/tools/profiles/extensions/lto .json -DBOARD_HAS_VIDEO=0 -N mcuboot_portenta_h7_lite_connected
45+ mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_portenta_lite_connected.json -- profile=release --profile custom .json -N mcuboot_portenta_h7_lite_connected
4646mkdir -p release/PORTENTA_H7_Lite_Connected
4747cp ./libbootutil.a ./release/PORTENTA_H7_Lite_Connected
4848cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7_lite_connected.bin ./release/PORTENTA_H7_Lite_Connected/mcuboot_portenta_h7_lite_connected.bin
5656if [[ $1 == " nicla" ]] || [[ $1 == " all" ]]; then
5757echo
5858echo Generating binaries for NICLA VISION
59- mbed compile -c -m NICLA_VISION -t GCC_ARM --profile=release --profile mbed-os/tools/profiles/extensions/lto .json -DBOARD_RAM_SIZE=0 -N mcuboot_nicla_vision
59+ mbed compile -c -m NICLA_VISION -t GCC_ARM --app=mbed_app_nicla_vision.json -- profile=release --profile custom .json -N mcuboot_nicla_vision
6060mkdir -p release/NICLA_VISION
6161mv ./libbootutil.a ./release/NICLA_VISION
6262cp ./BUILD/NICLA_VISION/GCC_ARM-RELEASE/mcuboot_nicla_vision.bin ./release/NICLA_VISION/mcuboot_nicla_vision.bin
0 commit comments