diff options
| -rw-r--r-- | fw/app/meson.build | 25 | ||||
| -rw-r--r-- | fw/meson.build | 1 | ||||
| -rw-r--r-- | web/layouts/home.html | 1 | ||||
| -rw-r--r-- | web/meson.build | 1 | 
4 files changed, 28 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') diff --git a/web/layouts/home.html b/web/layouts/home.html index 4f1f7fc..fe40af2 100644 --- a/web/layouts/home.html +++ b/web/layouts/home.html @@ -3,6 +3,7 @@  <ul>  	<li><a href="static/bill-of-materials.csv">bill-of-materials.csv</a></li>  	<li><a href="static/schematic.pdf">schematic.pdf</a></li> +	<li><a href="static/application.bin">application.bin</a></li>  	<li><a href="static/bootloader.bin">bootloader.bin</a></li>  </ul>  {{- end -}} diff --git a/web/meson.build b/web/meson.build index 270b7c3..da45440 100644 --- a/web/meson.build +++ b/web/meson.build @@ -13,6 +13,7 @@ website = custom_target('website',    depends: [      schematic,      bom, +    application,      bootloader,    ],    build_by_default: true,  | 
