From b1838d1c5b6bd27757d50d784543ea0ae16c1769 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 24 May 2025 11:17:46 +0200 Subject: Remove `st-flash`-based build targets This was used since flashing was complex. Thus the build system should help making it easier. The new approach is more to provide artifacts by the build system which are easy to flash / remote-update. A `factory-image.bin` and `update-image.bin` should be provided. --- fw/app/meson.build | 14 -------------- fw/btl/meson.build | 14 -------------- fw/meson.build | 11 ----------- 3 files changed, 39 deletions(-) diff --git a/fw/app/meson.build b/fw/app/meson.build index ddd5aa6..8d84209 100644 --- a/fw/app/meson.build +++ b/fw/app/meson.build @@ -43,17 +43,3 @@ application_signed = custom_target( install: true, install_dir: '/', ) - -flash_application = custom_target( - build_always_stale: true, - build_by_default: false, - command: [ - 'st-flash', - '--connect-under-reset', - 'write', - meson.current_build_dir() / 'application.signed.bin', - '0x8040000', - ], - depends: application_signed, - output: ['flash'], -) diff --git a/fw/btl/meson.build b/fw/btl/meson.build index 8ca1eb3..c22ba3c 100644 --- a/fw/btl/meson.build +++ b/fw/btl/meson.build @@ -26,17 +26,3 @@ 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'], -) diff --git a/fw/meson.build b/fw/meson.build index f61058c..8194827 100644 --- a/fw/meson.build +++ b/fw/meson.build @@ -7,14 +7,3 @@ subdir('rtos') subdir('app') subdir('btl') subdir('sim') - -erase = custom_target( - build_always_stale: true, - build_by_default: false, - command: [ - 'st-flash', - '--connect-under-reset', - 'erase', - ], - output: ['erase'], -) -- cgit v1.2.3-70-g09d2