[PATCH v2 4/9] efi_loader: ease the file path check for public key

AKASHI Takahiro takahiro.akashi at linaro.org
Tue Jul 27 11:10:49 CEST 2021


The check for CONFIG_EFI_CAPSULE_KEY_PATH:
    ifeq ("$(wildcard $(EFI_CAPSULE_KEY_PATH))","")
does not allow users to specify a relative path for including a public
key binary. This is fine for most of all cases, but it will make it
difficult to add pytest test cases as pre-created keys/certificates
are placed in "test" directory.

So just ease the check, still causing an error if the specified file
does not exist at compiling efi_capsule_key.S.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 lib/efi_loader/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile
index 9b369430e258..fca0da4d131e 100644
--- a/lib/efi_loader/Makefile
+++ b/lib/efi_loader/Makefile
@@ -21,8 +21,9 @@ targets += helloworld.o
 endif
 
 ifeq ($(CONFIG_EFI_CAPSULE_AUTHENTICATE),y)
-EFI_CAPSULE_KEY_PATH := $(subst $\",,$(CONFIG_EFI_CAPSULE_KEY_PATH))
-ifeq ("$(wildcard $(EFI_CAPSULE_KEY_PATH))","")
+#EFI_CAPSULE_KEY_PATH := $(subst $\",,$(CONFIG_EFI_CAPSULE_KEY_PATH))
+#ifeq ("$(wildcard $(EFI_CAPSULE_KEY_PATH))","")
+ifeq ($(CONFIG_EFI_CAPSULE_KEY_PATH),"")
 $(error .esl cerificate not found. Configure your CONFIG_EFI_CAPSULE_KEY_PATH)
 endif
 endif
-- 
2.31.0



More information about the U-Boot mailing list