浏览代码

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 <[email protected]>
Matthias Schiffer 3 年之前
父节点
当前提交
a01d23e755
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/image.mk

+ 1 - 1
include/image.mk

@@ -517,7 +517,7 @@ endif
 define Device/Build/compile
 define Device/Build/compile
   $$(_COMPILE_TARGET): $(KDIR)/$(1)
   $$(_COMPILE_TARGET): $(KDIR)/$(1)
   $(eval $(call Device/Export,$(KDIR)/$(1)))
   $(eval $(call Device/Export,$(KDIR)/$(1)))
-  $(KDIR)/$(1):
+  $(KDIR)/$(1): FORCE
 	$$(call concat_cmd,$(COMPILE/$(1)))
 	$$(call concat_cmd,$(COMPILE/$(1)))
 
 
 endef
 endef