summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build12
1 files changed, 11 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e071d58e11..738fb0b17f 100644
--- a/meson.build
+++ b/meson.build
@@ -2620,6 +2620,12 @@ foreach executable : ['systemd-journal-remote', 'systemd-measure']
endforeach
if mkosi.found()
+ genkey = custom_target('genkey',
+ output : ['mkosi.key', 'mkosi.crt'],
+ command : [mkosi, 'genkey'],
+ depends : mkosi_depends,
+ )
+
custom_target('mkosi',
build_always_stale : true,
build_by_default: false,
@@ -2631,10 +2637,14 @@ if mkosi.found()
'--output-dir', meson.current_build_dir() / 'mkosi.output',
'--cache-dir', meson.current_build_dir() / 'mkosi.cache',
'--build-dir', meson.current_build_dir() / 'mkosi.builddir',
+ '--secure-boot-key', meson.current_build_dir() / 'mkosi.key',
+ '--secure-boot-certificate', meson.current_build_dir() / 'mkosi.crt',
+ '--verity-key', meson.current_build_dir() / 'mkosi.key',
+ '--verity-certificate', meson.current_build_dir() / 'mkosi.crt',
'--force',
'build',
],
- depends : mkosi_depends,
+ depends : mkosi_depends + [genkey],
)
endif