summaryrefslogtreecommitdiff
path: root/fw/app
diff options
context:
space:
mode:
Diffstat (limited to 'fw/app')
-rw-r--r--fw/app/meson.build29
1 files changed, 24 insertions, 5 deletions
diff --git a/fw/app/meson.build b/fw/app/meson.build
index 84e4c21..1a16862 100644
--- a/fw/app/meson.build
+++ b/fw/app/meson.build
@@ -24,18 +24,37 @@ application = custom_target(
],
)
+version = '0.0.0'
+header_size = '0x200'
+slot_size = '0xc0000'
+
application_signed = custom_target(
output: ['application.signed.bin'],
command: [
imgtool,
'sign',
- '--version', '0.0.0',
- '--header-size', '0x200',
- '--slot-size', '0xc0000',
+ '--version', version,
+ '--header-size', header_size,
+ '--slot-size', slot_size,
+ '--key', signing_key,
+ meson.current_build_dir() / 'application.bin',
+ '@OUTPUT@',
+ ],
+ depends: application,
+)
+
+application_signed_confirmed = custom_target(
+ output: ['application.signed.confirmed.bin'],
+ command: [
+ imgtool,
+ 'sign',
+ '--version', version,
+ '--header-size', header_size,
+ '--slot-size', slot_size,
'--key', signing_key,
+ '--confirm',
meson.current_build_dir() / 'application.bin',
- meson.current_build_dir() / 'application.signed.bin',
+ '@OUTPUT@',
],
- build_by_default: true,
depends: application,
)