diff options
Diffstat (limited to 'fw/btl')
| -rw-r--r-- | fw/btl/meson.build | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/fw/btl/meson.build b/fw/btl/meson.build index c22ba3c..8ca1eb3 100644 --- a/fw/btl/meson.build +++ b/fw/btl/meson.build @@ -26,3 +26,17 @@ bootloader = custom_target('bootloader',    install: true,    install_dir: '/',  ) + +flash_bootloader = custom_target( +  build_always_stale: true, +  build_by_default: false, +  command: [ +    'st-flash', +    '--connect-under-reset', +    'write', +    meson.current_build_dir() / 'bootloader.bin', +    '0x8000000', +  ], +  depends: bootloader, +  output: ['flash'], +)  | 
