@@ -3,7 +3,7 @@ rm -rf release
3
3
rm -rf BUILD
4
4
5
5
if [[ $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
7
7
echo
8
8
echo Generating bootutil library
9
9
find ./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
14
14
if [[ $1 == " portenta" ]] || [[ $1 == " all" ]]; then
15
15
echo
16
16
echo 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
18
18
mkdir -p release/PORTENTA_H7
19
19
cp ./libbootutil.a ./release/PORTENTA_H7
20
20
cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7.bin ./release/PORTENTA_H7/mcuboot_portenta_h7.bin
28
28
if [[ $1 == " lite" ]] || [[ $1 == " all" ]]; then
29
29
echo
30
30
echo 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
32
32
mkdir -p release/PORTENTA_H7_Lite
33
33
cp ./libbootutil.a ./release/PORTENTA_H7_Lite
34
34
cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7_lite.bin ./release/PORTENTA_H7_Lite/mcuboot_portenta_h7_lite.bin
42
42
if [[ $1 == " connected" ]] || [[ $1 == " all" ]]; then
43
43
echo
44
44
echo 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
46
46
mkdir -p release/PORTENTA_H7_Lite_Connected
47
47
cp ./libbootutil.a ./release/PORTENTA_H7_Lite_Connected
48
48
cp ./BUILD/PORTENTA_H7_M7/GCC_ARM-RELEASE/mcuboot_portenta_h7_lite_connected.bin ./release/PORTENTA_H7_Lite_Connected/mcuboot_portenta_h7_lite_connected.bin
56
56
if [[ $1 == " nicla" ]] || [[ $1 == " all" ]]; then
57
57
echo
58
58
echo 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
60
60
mkdir -p release/NICLA_VISION
61
61
mv ./libbootutil.a ./release/NICLA_VISION
62
62
cp ./BUILD/NICLA_VISION/GCC_ARM-RELEASE/mcuboot_nicla_vision.bin ./release/NICLA_VISION/mcuboot_nicla_vision.bin
0 commit comments