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,
'--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