diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-05-22 08:24:49 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2023-05-25 09:26:00 +0200 |
commit | 095aabe338d166f3a9c87bcc9b9b84ba80fdaddf (patch) | |
tree | 20bc8d73bc9de5b1394be702b5230f4278d9ab09 /drivers/firmware/efi/libstub/Makefile.zboot | |
parent | Linux 6.4-rc1 (diff) | |
download | linux-095aabe338d166f3a9c87bcc9b9b84ba80fdaddf.tar.xz linux-095aabe338d166f3a9c87bcc9b9b84ba80fdaddf.zip |
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 <pedro.falcato@gmail.com>
Tested-by: Alan Bartlett <ajb@elrepo.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/firmware/efi/libstub/Makefile.zboot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/Makefile.zboot b/drivers/firmware/efi/libstub/Makefile.zboot index 89ef820f3b34..2c489627a807 100644 --- a/drivers/firmware/efi/libstub/Makefile.zboot +++ b/drivers/firmware/efi/libstub/Makefile.zboot @@ -32,7 +32,8 @@ zboot-size-len-$(CONFIG_KERNEL_GZIP) := 0 $(obj)/vmlinuz: $(obj)/vmlinux.bin FORCE $(call if_changed,$(zboot-method-y)) -OBJCOPYFLAGS_vmlinuz.o := -I binary -O $(EFI_ZBOOT_BFD_TARGET) $(EFI_ZBOOT_OBJCOPY_FLAGS) \ +# avoid eager evaluation to prevent references to non-existent build artifacts +OBJCOPYFLAGS_vmlinuz.o = -I binary -O $(EFI_ZBOOT_BFD_TARGET) $(EFI_ZBOOT_OBJCOPY_FLAGS) \ --rename-section .data=.gzdata,load,alloc,readonly,contents $(obj)/vmlinuz.o: $(obj)/vmlinuz FORCE $(call if_changed,objcopy) |