diff options
author | xengineering <me@xengineering.eu> | 2025-04-06 17:59:06 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-04-06 17:59:06 +0200 |
commit | 867755129e5c50f4e35bc34d5818c2397f3f09db (patch) | |
tree | 72758147e7fe1a10a2202b9fdbd487d587524502 /fw/btl | |
parent | 84ab791be78c4f2014a78b09305c5c332b5383e3 (diff) | |
download | iot-contact-867755129e5c50f4e35bc34d5818c2397f3f09db.tar iot-contact-867755129e5c50f4e35bc34d5818c2397f3f09db.tar.zst iot-contact-867755129e5c50f4e35bc34d5818c2397f3f09db.zip |
tools: Use argparse for build scripts
This makes them re-usable for the application and native_sim firmwares.
Diffstat (limited to 'fw/btl')
-rw-r--r-- | fw/btl/meson.build | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fw/btl/meson.build b/fw/btl/meson.build index cedd11d..b64fd40 100644 --- a/fw/btl/meson.build +++ b/fw/btl/meson.build @@ -3,13 +3,13 @@ external_project = import('unstable-external_project') external_project.add_project( configure_zephyr, configure_options: [ - bootloader_firmware, - meson.current_build_dir() / 'build', - board, - zephyr, - ';'.join(zephyr_modules), - meson.current_source_dir() / 'bootloader.conf', - signing_key, + '--source-tree', bootloader_firmware, + '--build-tree', meson.current_build_dir() / 'build', + '--board', board, + '--zephyr-base', zephyr, + '--zephyr-modules', ';'.join(zephyr_modules), + '--extra-config', meson.current_source_dir() / 'bootloader.conf', + '--signing-key', signing_key, ], verbose: true, ) @@ -18,7 +18,8 @@ bootloader = custom_target('bootloader', output: ['bootloader.bin'], command: [ build_zephyr, - meson.current_build_dir() / 'build', + '--build-tree', meson.current_build_dir() / 'build', + '--target-name', 'bootloader.bin', ], build_by_default: true, install: true, |