diff options
Diffstat (limited to 'fw/btl/meson.build')
-rw-r--r-- | fw/btl/meson.build | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/fw/btl/meson.build b/fw/btl/meson.build index 4d80a58..8ca1eb3 100644 --- a/fw/btl/meson.build +++ b/fw/btl/meson.build @@ -24,5 +24,19 @@ bootloader = custom_target('bootloader', ], build_by_default: true, install: true, - install_dir: 'website/static', + 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'], ) |