8000 Improve generate_lib script · arduino/mcuboot-arduino-stm32h7@2e6e828 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e6e828

Browse files
committed
Improve generate_lib script
Use new json file mbed_app_bootutil Use mbed compile -c to rebuild everything from scratch Include only needed *.o files Print libbootutil path at the end of build process
1 parent 4a70707 commit 2e6e828

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

generate_lib.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
2-
rm -rf BUILD/PORTENTA_H7_M7/GCC_ARM/
3-
mbed compile -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_log_off.json
4-
cd BUILD/PORTENTA_H7_M7/GCC_ARM/
5-
rm -rf mbed-os/
6-
find . -name "*.o" | xargs arm-none-eabi-ar -csr libbootutil.a
2+
mbed compile -c -m PORTENTA_H7_M7 -t GCC_ARM --app=mbed_app_bootutil.json
3+
echo
4+
echo Generating library
5+
find ./BUILD/PORTENTA_H7_M7/GCC_ARM/ \( -name "FileBlockDevice.o" -o -name "rtc.o" -o -name "ota.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
6+
echo -n "Library: "
7+
find ./ -name "libbootutil.a"
8+
echo

0 commit comments

Comments
 (0)
0