diff options
author | xengineering <me@xengineering.eu> | 2025-05-24 11:31:11 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-05-24 11:31:11 +0200 |
commit | a82bdbbec681cec0c6f5304318b6010f1752dbf6 (patch) | |
tree | 539d4610508c1bb3069c5f11ee63977e534b2a68 /fw/meson.build | |
parent | f38300b15627e5234f0f0a07c31c32135901dee7 (diff) | |
parent | bf8d20fe4d8d3369dd7f63e95f53613dbbfa3603 (diff) | |
download | iot-contact-a82bdbbec681cec0c6f5304318b6010f1752dbf6.tar iot-contact-a82bdbbec681cec0c6f5304318b6010f1752dbf6.tar.zst iot-contact-a82bdbbec681cec0c6f5304318b6010f1752dbf6.zip |
Merge build system improvements
- remove flash targets (replaced by easy to flash `factory-image.bin`)
- replaced installation step by copy targets
- provide `factory-image.bin` and `update-image.bin`
Diffstat (limited to 'fw/meson.build')
-rw-r--r-- | fw/meson.build | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fw/meson.build b/fw/meson.build index f61058c..8f45d5b 100644 --- a/fw/meson.build +++ b/fw/meson.build @@ -8,13 +8,16 @@ subdir('app') subdir('btl') subdir('sim') -erase = custom_target( - build_always_stale: true, - build_by_default: false, +factory_image = custom_target( + output: ['factory-image.bin'], command: [ - 'st-flash', - '--connect-under-reset', - 'erase', + make_factory_image, + '--bootloader', bootloader, + '--application', application_signed_confirmed, + '--factory-image', '@OUTPUT@', + ], + depends: [ + bootloader, + application_signed_confirmed, ], - output: ['erase'], ) |