or context.config.secure_boot_sign_tool == SecureBootSignTool.auto
and context.config.find_binary("sbsign") is not None
):
+ if context.config.secure_boot_certificate_source.type != CertificateSourceType.file:
+ die("Secure boot certificate source must be 'file' when using sbsign as the signing tool")
+
cmd = [
"sbsign",
"--cert", workdir(context.config.secure_boot_certificate),
or context.config.secure_boot_sign_tool == SecureBootSignTool.auto
and context.config.find_binary("pesign") is not None
):
+ if context.config.secure_boot_certificate_source.type != CertificateSourceType.file:
+ die("Secure boot certificate source must be 'file' when using pesign as the signing tool")
+
pesign_prepare(context)
run(
[