[openwrt/openwrt] image: always rebuild kernel loaders

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 14 14:16:22 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/a7fb589e8a9df06bd0e36c91d05806f1e8aeb9e8

commit a7fb589e8a9df06bd0e36c91d05806f1e8aeb9e8
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Sun Mar 27 23:15:48 2022 +0200

    image: always rebuild kernel loaders
    
    Kernel loaders like the lzma-loader currently don't track changes to
    their sources. This can lead to an old version of a loader to be used
    when a build tree is not clean between builds.
    
    As the loaders are tiny and the build times are insignificant, simply
    force rebuilding them on every build to avoid this problem.
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
    (cherry picked from commit a01d23e755ba46f41e667d558d82d4871d7f5450)
---
 include/image.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index 1703c39797..c7a2e082ab 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -524,7 +524,7 @@ endif
 define Device/Build/compile
   $$(_COMPILE_TARGET): $(KDIR)/$(1)
   $(eval $(call Device/Export,$(KDIR)/$(1)))
-  $(KDIR)/$(1):
+  $(KDIR)/$(1): FORCE
 	$$(call concat_cmd,$(COMPILE/$(1)))
 
 endef




More information about the lede-commits mailing list