Skip to contentSkip to conversation

firmware/Makefile: force recompilation if makefile changes

PATCH New [email protected] 1 participant 1 message May 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 20/114 firmware/Makefile: force recompilation if makefile changes

From: "Luis R. Rodriguez" <[email protected]>
Subject: firmware/Makefile: force recompilation if makefile changes

If you modify the target asm we currently do not force the recompilation of the firmware files. The target asm is in the firmware/Makefile, peg this file as a dependency to require re-compilation of firmware targets when the asm changes.

---

 firmware/Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
firmware/Makefile renamed from firmware/Makefile~firmware-makefile-force-recompilation-if-makefile-changes +2 -1
diff -puN firmware/Makefile~firmware-makefile-force-recompilation-if-makefile-changes firmware/Makefile
@@ -176,7 +176,8 @@ quiet_cmd_fwbin = MK_FW   $@
 wordsize_deps := $(wildcard include/config/64bit.h include/config/32bit.h \
 		include/config/ppc32.h include/config/ppc64.h \
 		include/config/superh32.h include/config/superh64.h \
-		include/config/x86_32.h include/config/x86_64.h)
+		include/config/x86_32.h include/config/x86_64.h \
+		firmware/Makefile)
 
 $(patsubst %,$(obj)/%.gen.S, $(fw-shipped-y)): %: $(wordsize_deps)
 	$(call cmd,fwbin,$(patsubst %.gen.S,%,$@))

_