All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/x86: add $(srctree) as include dir for sbat.o
@ 2026-01-06  8:01 Jan Stancek
  2026-02-25 19:30 ` [PATCH v2] x86: " Jan Stancek
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Stancek @ 2026-01-06  8:01 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86; +Cc: hpa, vkuznets, linux-kernel, jstancek

CONFIG_EFI_SBAT_FILE can be a relative path. When compiling with
objdir != srctree the build currently fails because it can't find
the file set in CONFIG_EFI_SBAT_FILE:
    arch/x86/boot/compressed/sbat.S: Assembler messages:
    arch/x86/boot/compressed/sbat.S:6: Error: file not found: kernel.sbat

Add $(srctree) as include dir for sbat.o.

Fixes: 61b57d35396a ("x86/efi: Implement support for embedding SBAT data for x86")
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 arch/x86/boot/compressed/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 68f9d7a1683b..b8b2b7bea1d3 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -113,6 +113,7 @@ vmlinux-objs-$(CONFIG_EFI_SBAT) += $(obj)/sbat.o
 
 ifdef CONFIG_EFI_SBAT
 $(obj)/sbat.o: $(CONFIG_EFI_SBAT_FILE)
+AFLAGS_sbat.o += -I $(srctree)
 endif
 
 $(obj)/vmlinux: $(vmlinux-objs-y) $(vmlinux-libs-y) FORCE
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-04 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06  8:01 [PATCH] arch/x86: add $(srctree) as include dir for sbat.o Jan Stancek
2026-02-25 19:30 ` [PATCH v2] x86: " Jan Stancek
2026-03-04  8:45   ` Vitaly Kuznetsov
2026-03-04 11:06   ` [tip: x86/urgent] x86/boot: Handle relative CONFIG_EFI_SBAT_FILE file paths tip-bot2 for Jan Stancek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.