[PATCH v2 4/9] efi_loader: ease the file path check for public key
AKASHI Takahiro
takahiro.akashi at linaro.org
Mon Aug 2 06:50:24 CEST 2021
On Sun, Aug 01, 2021 at 11:35:15AM +0200, Heinrich Schuchardt wrote:
> On 7/27/21 11:10 AM, AKASHI Takahiro wrote:
> > 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))","")
>
> Please, remove these two comment lines.
I forgot to do so.
> > +ifeq ($(CONFIG_EFI_CAPSULE_KEY_PATH),"")
> > $(error .esl cerificate not found. Configure your CONFIG_EFI_CAPSULE_KEY_PATH)
>
> %s/cerificate/certificate/
This misspelling does exist in the original.
I won't fix it.
-Takahiro Akashi
> Best regards
>
> Heinrich
>
> > endif
> > endif
> >
>
More information about the U-Boot
mailing list