From 17c334ada43ee5eabd14caabacbe393fe3482451 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 7 Aug 2025 21:31:21 +0200 Subject: Add opt-in for nucleo_f767zi firmwares This partially reverts commit ce098756d79d8e4240bedc2bd74ff9a3a77fcedb. The reverted commit dropped the build logic for all nucleo_f767zi-related artifacts and thus for everything except the native sim firmware. Instead this commit reverts this change but comments out the `update_image` and `factory_image` targets from the `artifacts` variable in the top-level `meson.build`. This allows to build these two targets explicitly with `ninja -C build ` but does not include it into the deploy tar archive. Since this archive is the only target of the project with `build_by_default: true` this effectively disables the build with minimal code changes. --- fw/meson.build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'fw/meson.build') diff --git a/fw/meson.build b/fw/meson.build index bc70142..8f45d5b 100644 --- a/fw/meson.build +++ b/fw/meson.build @@ -1,3 +1,23 @@ +board = 'nucleo_f767zi' + +fs = import('fs') +signing_key = fs.expanduser('~') / 'mcuboot' / 'key.pem' + subdir('rtos') subdir('app') +subdir('btl') subdir('sim') + +factory_image = custom_target( + output: ['factory-image.bin'], + command: [ + make_factory_image, + '--bootloader', bootloader, + '--application', application_signed_confirmed, + '--factory-image', '@OUTPUT@', + ], + depends: [ + bootloader, + application_signed_confirmed, + ], +) -- cgit v1.2.3-70-g09d2