git: 62671aa7d5fe - main - libsecureboot: avoid noise when looking for tust anchors

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Sat, 19 Apr 2025 19:29:37 UTC
The branch main has been updated by sjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=62671aa7d5fe72e4bd6669902eead98004f650e9

commit 62671aa7d5fe72e4bd6669902eead98004f650e9
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2025-04-19 19:29:30 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2025-04-19 19:29:30 +0000

    libsecureboot: avoid noise when looking for tust anchors
    
    PR: 286160
---
 lib/libsecureboot/local.trust.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libsecureboot/local.trust.mk b/lib/libsecureboot/local.trust.mk
index b009139a2f68..f2da3d3ac452 100644
--- a/lib/libsecureboot/local.trust.mk
+++ b/lib/libsecureboot/local.trust.mk
@@ -84,7 +84,7 @@ VE_SIGNATURE_LIST?= RSA
 # you need to provide t*.pem or t*.asc files for each trust anchor
 # below assumes they are named ta_${ext}.pem eg ta_esig.pem for ECDSA
 .if empty(TRUST_ANCHORS)
-TRUST_ANCHORS!= cd ${.CURDIR} && 'ls' -1 *.pem t*.asc 2> /dev/null
+TRUST_ANCHORS!= cd ${.CURDIR} && 'ls' -1 *.pem t*.asc 2> /dev/null || echo
 .endif
 .if empty(TRUST_ANCHORS) && ${MK_LOADER_EFI_SECUREBOOT} != "yes"
 .error Need TRUST_ANCHORS see ${.PARSEDIR}/README.rst