summaryrefslogtreecommitdiff
path: root/fw/app
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-06 18:04:25 +0200
committerxengineering <me@xengineering.eu>2025-04-06 18:04:25 +0200
commit8350421e659e9273a94debdd6f29cd80979a63f1 (patch)
tree06e0f4cf595ec4bf3971731fa09aeedef2558dad /fw/app
parent867755129e5c50f4e35bc34d5818c2397f3f09db (diff)
downloadiot-contact-8350421e659e9273a94debdd6f29cd80979a63f1.tar
iot-contact-8350421e659e9273a94debdd6f29cd80979a63f1.tar.zst
iot-contact-8350421e659e9273a94debdd6f29cd80979a63f1.zip
fw: app: Build with Meson
Diffstat (limited to 'fw/app')
-rw-r--r--fw/app/meson.build25
1 files changed, 25 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',
+)