Skip to contentSkip to conversation

qemu: common: Fix build with update capsule

PATCH In review Vincent Stehlé 2 participants 2 messages Nov 24, 2021 – Nov 29, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: common: Fix build with update capsule

The common emulation Makefile has a dependency on a non-existent qemu_capsule.o when building with support for capsule update enabled (CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y).
The code which was in qemu_capsule.c has been completely moved to lib/efi_loader/efi_capsule.c by commit 7a6fb28c8e4b ("efi_loader: capsule:
add back efi_get_public_key_data()").
Remove the false dependency.

This fixes the following build error:

make[1]: *** No rule to make target 'board/emulation/common/qemu_capsule.o', needed by 'board/emulation/common/built-in.o'. Stop.

Fixes commit 47a25e81d35c ("Revert "efi_capsule: Move signature from DTB to .rodata"")
Cc Simon Glass <[email protected]>
---
 board/emulation/common/Makefile | 1 -
 1 file changed, 1 deletion(-)
board/emulation/common/Makefile +0 -1
index 7ed447a69dc..c5b452e7e34 100644
@@ -2,4 +2,3 @@
 
 obj-$(CONFIG_SYS_MTDPARTS_RUNTIME) += qemu_mtdparts.o
 obj-$(CONFIG_SET_DFU_ALT_INFO) += qemu_dfu.o
-obj-$(CONFIG_EFI_CAPSULE_FIRMWARE_MANAGEMENT) += qemu_capsule.o
Signature · 1 line
2.33.0
#1 lore raw
Quoted 8 lines · Vincent Stehlé

The common emulation Makefile has a dependency on a non-existent qemu_capsule.o when building with support for capsule update enabled (CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y).
The code which was in qemu_capsule.c has been completely moved to lib/efi_loader/efi_capsule.c by commit 7a6fb28c8e4b ("efi_loader: capsule:
add back efi_get_public_key_data()").
Remove the false dependency.

Quoted 7 lines

This fixes the following build error:

make[1]: *** No rule to make target 'board/emulation/common/qemu_capsule.o', needed by 'board/emulation/common/built-in.o'. Stop.

Fixes commit 47a25e81d35c ("Revert "efi_capsule: Move signature from DTB to .rodata"")
Cc Simon Glass <[email protected]>

Applied to u-boot/master, thanks!

Signature · 1 line
Tom