diff options
Diffstat (limited to 'fw')
| -rw-r--r-- | fw/app/meson.build | 25 | ||||
| -rw-r--r-- | fw/meson.build | 1 | 
2 files changed, 26 insertions, 0 deletions
diff --git a/fw/app/meson.build b/fw/app/meson.build new file mode 100644 index 0000000..7f35ebb --- /dev/null +++ b/fw/app/meson.build @@ -0,0 +1,25 @@ +external_project = import('unstable-external_project') + +external_project.add_project( +  configure_zephyr, +  configure_options: [ +    '--source-tree', meson.current_source_dir(), +    '--build-tree', meson.current_build_dir() / 'build', +    '--board', board, +    '--zephyr-base', zephyr, +    '--zephyr-modules', ';'.join(zephyr_modules), +  ], +  verbose: true, +) + +application = custom_target('application', +  output: ['application.bin'], +  command: [ +    build_zephyr, +    '--build-tree', meson.current_build_dir() / 'build', +    '--target-name', 'application.bin', +  ], +  build_by_default: true, +  install: true, +  install_dir: 'website/static', +) diff --git a/fw/meson.build b/fw/meson.build index 7f9bead..492465e 100644 --- a/fw/meson.build +++ b/fw/meson.build @@ -4,4 +4,5 @@ fs = import('fs')  signing_key = fs.expanduser('~') / 'mcuboot' / 'key.pem'  subdir('rtos') +subdir('app')  subdir('btl')  | 
