diff options
Diffstat (limited to 'fw/btl/meson.build')
-rw-r--r-- | fw/btl/meson.build | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/fw/btl/meson.build b/fw/btl/meson.build new file mode 100644 index 0000000..4d80a58 --- /dev/null +++ b/fw/btl/meson.build @@ -0,0 +1,28 @@ +external_project = import('unstable-external_project') + +external_project.add_project( + configure_zephyr, + configure_options: [ + '--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, +) + +bootloader = custom_target('bootloader', + output: ['bootloader.bin'], + command: [ + build_zephyr, + '--build-tree', meson.current_build_dir() / 'build', + '--binary-name', 'zephyr.bin', + '--target-name', 'bootloader.bin', + ], + build_by_default: true, + install: true, + install_dir: 'website/static', +) |