diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-27 11:24:43 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-27 12:02:31 +0200 |
commit | 2189b3268d3843f5ea828de2bbdf0ea2bce45b6b (patch) | |
tree | d52c95ef546b252cb7073ae00361927ec8553e74 /meson.build | |
parent | meson: Look up mkosi once (diff) | |
download | systemd-2189b3268d3843f5ea828de2bbdf0ea2bce45b6b.tar.xz systemd-2189b3268d3843f5ea828de2bbdf0ea2bce45b6b.zip |
meson: Add genkey target
Let's automatically generate keys instead of requiring developers to
do it manually.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
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 |