efi_loader: Moved the generated ESL file to objtree
Tom reports that generating the ESL file we need for authenticated capsule updates fails to work on azure which expects a RO git tree. Move it to $(objtree) Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:

committed by
Tom Rini

parent
3c9c3d852e
commit
739ad58dbe
1
.gitignore
vendored
1
.gitignore
vendored
@@ -78,6 +78,7 @@ fit-dtb.blob*
|
|||||||
/drivers/video/u_boot_logo.S
|
/drivers/video/u_boot_logo.S
|
||||||
/test/overlay/test-fdt-overlay.dtbo.S
|
/test/overlay/test-fdt-overlay.dtbo.S
|
||||||
/test/overlay/test-fdt-overlay-stacked.dtbo.S
|
/test/overlay/test-fdt-overlay-stacked.dtbo.S
|
||||||
|
capsule_esl_file
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generated include files
|
# Generated include files
|
||||||
|
2
Makefile
2
Makefile
@@ -2231,7 +2231,7 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \
|
|||||||
itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \
|
itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \
|
||||||
mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \
|
mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \
|
||||||
idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
|
idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
|
||||||
Test* capsule*.*.efi-capsule capsule*.map capsule_esl_file
|
Test* capsule*.*.efi-capsule capsule*.map
|
||||||
|
|
||||||
# Directories & files removed with 'make mrproper'
|
# Directories & files removed with 'make mrproper'
|
||||||
MRPROPER_DIRS += include/config include/generated spl tpl vpl \
|
MRPROPER_DIRS += include/config include/generated spl tpl vpl \
|
||||||
|
@@ -79,7 +79,7 @@ capsule_crt_path=($(subst $(quote),,$(CONFIG_EFI_CAPSULE_CRT_FILE)))
|
|||||||
capsule_crt_full=$(srctree)/$(subst $(quote),,$(CONFIG_EFI_CAPSULE_CRT_FILE))
|
capsule_crt_full=$(srctree)/$(subst $(quote),,$(CONFIG_EFI_CAPSULE_CRT_FILE))
|
||||||
quiet_cmd_capsule_esl_gen = CAPSULE_ESL_GEN $@
|
quiet_cmd_capsule_esl_gen = CAPSULE_ESL_GEN $@
|
||||||
cmd_capsule_esl_gen = cert-to-efi-sig-list $(capsule_crt_full) $@
|
cmd_capsule_esl_gen = cert-to-efi-sig-list $(capsule_crt_full) $@
|
||||||
$(srctree)/capsule_esl_file: FORCE
|
$(objtree)/capsule_esl_file: FORCE
|
||||||
@if [ ! -e "$(capsule_crt_full)" ]; then \
|
@if [ ! -e "$(capsule_crt_full)" ]; then \
|
||||||
echo "ERROR: path $(capsule_crt_full) is invalid." >&2; \
|
echo "ERROR: path $(capsule_crt_full) is invalid." >&2; \
|
||||||
echo "EFI CONFIG_EFI_CAPSULE_CRT_FILE must be specified when CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled." >&2; \
|
echo "EFI CONFIG_EFI_CAPSULE_CRT_FILE must be specified when CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled." >&2; \
|
||||||
@@ -87,8 +87,8 @@ $(srctree)/capsule_esl_file: FORCE
|
|||||||
fi
|
fi
|
||||||
$(call cmd,capsule_esl_gen)
|
$(call cmd,capsule_esl_gen)
|
||||||
|
|
||||||
$(obj)/efi_capsule.o: $(srctree)/capsule_esl_file FORCE
|
$(obj)/efi_capsule.o: $(objtree)/capsule_esl_file FORCE
|
||||||
asflags-y += -DCAPSULE_ESL_PATH=\"$(srctree)/capsule_esl_file\"
|
asflags-y += -DCAPSULE_ESL_PATH=\"$(objtree)/capsule_esl_file\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set the C flags to add and remove for each app
|
# Set the C flags to add and remove for each app
|
||||||
|
Reference in New Issue
Block a user