Skip to content

Commit 095aabe

Browse files
committed
efi/libstub: zboot: Avoid eager evaluation of objcopy flags
The Make variable containing the objcopy flags may be constructed from the output of build tools operating on build artifacts, and these may not exist when doing a make clean. So avoid evaluating them eagerly, to prevent spurious build warnings. Suggested-by: Pedro Falcato <[email protected]> Tested-by: Alan Bartlett <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent ac9a786 commit 095aabe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/firmware/efi/libstub/Makefile.zboot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ zboot-size-len-$(CONFIG_KERNEL_GZIP) := 0
3232
$(obj)/vmlinuz: $(obj)/vmlinux.bin FORCE
3333
$(call if_changed,$(zboot-method-y))
3434

35-
OBJCOPYFLAGS_vmlinuz.o := -I binary -O $(EFI_ZBOOT_BFD_TARGET) $(EFI_ZBOOT_OBJCOPY_FLAGS) \
35+
# avoid eager evaluation to prevent references to non-existent build artifacts
36+
OBJCOPYFLAGS_vmlinuz.o = -I binary -O $(EFI_ZBOOT_BFD_TARGET) $(EFI_ZBOOT_OBJCOPY_FLAGS) \
3637
--rename-section .data=.gzdata,load,alloc,readonly,contents
3738
$(obj)/vmlinuz.o: $(obj)/vmlinuz FORCE
3839
$(call if_changed,objcopy)

0 commit comments

Comments
 (0)