From 26ad6858b7ca2093677a8a13d367436f5c1a22fe Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 17 Jan 2022 11:42:53 -0500 Subject: [PATCH] Adjust dependency for libefivar and libefiboot objects Depending on 'prep' causes all objects to be rebuilt every time 'make' is invoked. Depending on '$(GENERATED_SOURCES)' causes a build failure because guid-symbols.c gets passed to the compiler due to a rule in rules.mk. Depend on 'include/efivar/efivar-guids.h' directly to avoid these issues. Fixes: https://github.com/rhboot/efivar/issues/199 Signed-off-by: Mike Gilbert --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index a86abdc..e04357a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -88,7 +88,7 @@ $(MAKEGUIDS_OUTPUT) : guids.txt prep : makeguids $(GENERATED_SOURCES) -$(LIBEFIVAR_OBJECTS) $(LIBEFIBOOT_OBJECTS) : prep +$(LIBEFIVAR_OBJECTS) $(LIBEFIBOOT_OBJECTS) : include/efivar/efivar-guids.h libefivar.a : | $(GENERATED_SOURCES) libefivar.a : $(patsubst %.o,%.static.o,$(LIBEFIVAR_OBJECTS)) -- 2.35.3