diff options
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'], ) |