libsecureboot restore default trust anchors

If site.trust.mk does not set VE_SIGNATURE_LIST
initialize it based on content of VE_SIGNATURE_EXT_LIST
which is in turn initialized from TRUST_ANCHORS.

Sponsored by:	Hewlett Packard Enterprise Development LP

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D61245
This commit is contained in:
Simon J. Gerraty committed 2026-11-05 16:27:00 -08:00
1 parent cf59649539
commit b22b999afc
1 file changed
+10 -1
+10 -1
View File
@@ -102,9 +102,18 @@ VE_SIGNATURE_EXT_LIST?= ${TRUST_ANCHORS:T:Mt*.pem:R:S/ta_//}
.endif
.if ${TRUST_ANCHORS:T:Mt*.asc} != ""
VE_SIGNATURE_LIST+= asc/OPENPGP/sha256/0
VE_SIGNATURE_EXT_LIST+= asc
ta_asc.h: ${TRUST_ANCHORS:M*.asc}
.endif
.if empty(VE_SIGNATURE_LIST)
method.asc?= OPENPGP/sha256/0
method.esig?= ECDSA/sha256/0
.for ext in ${VE_SIGNATURE_EXT_LIST}
VE_SIGNATURE_LIST+= ${ext}/${method.${ext}:URSA/sha256/0}
.endfor
.endif
# we take the mtime of this as our baseline time
BUILD_UTC_FILE?= ${TRUST_ANCHORS:[1]}
.endif