[PATCH 1/6] Add dependency on generated config.h to efi build

1 view
Skip to first unread message

Jan Kiszka

unread,
Dec 9, 2024, 8:39:12 AM12/9/24
to efibootg...@googlegroups.com, Maxime Roussin-Bélanger, Felix Moessbauer, Christian Storm
From: Jan Kiszka <jan.k...@siemens.com>

The config.h is force-included and could influence any source file, e.g.
via SILENT_BOOT. Express this dependency.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 0ceb090..bb97df2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -278,7 +278,7 @@ define gnuefi_compile
$(GNUEFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
endef

-$(top_builddir)/%.o: $(top_srcdir)/%.c
+$(top_builddir)/%.o: $(top_srcdir)/%.c $(top_builddir)/config.h
$(call gnuefi_compile)

$(top_builddir)/env/%.o: $(top_srcdir)/env/%.c
--
2.43.0

Reply all
Reply to author
Forward
0 new messages