mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
meson: Add genkey target
Let's automatically generate keys instead of requiring developers to do it manually.
This commit is contained in:
parent
e2f9f3409a
commit
2189b3268d
12
meson.build
12
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user