summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-03-13 10:49:58 +0100
committerFelix Fietkau <nbd@nbd.name>2017-04-05 10:08:22 +0200
commit53fcaed1f78a4fa4073c96801e4a365e61866e62 (patch)
treee3ed37f5e4312663d0bcf42789bea4ce74348582
parent638ca50f3b1d66fb165891552ed8cde31aa2f194 (diff)
downloadmtk-20170518-53fcaed1f78a4fa4073c96801e4a365e61866e62.zip
mtk-20170518-53fcaed1f78a4fa4073c96801e4a365e61866e62.tar.gz
mtk-20170518-53fcaed1f78a4fa4073c96801e4a365e61866e62.tar.bz2
image.mk: force kernel rebuild on every run
DTS dependencies are not processed correctly so makes it safer against poentially stale builds Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/image.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image.mk b/include/image.mk
index 81519cd..8f55627 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -420,7 +420,7 @@ define Device/Build/initramfs
$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)
cp $$^ $$@
- $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/$$(KERNEL_INITRAMFS_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS)
+ $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/$$(KERNEL_INITRAMFS_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare
@rm -f $$@
$$(call concat_cmd,$$(KERNEL_INITRAMFS))
endef
@@ -444,7 +444,7 @@ define Device/Build/kernel
ifdef CONFIG_IB
install: $$(KDIR_KERNEL_IMAGE)
endif
- $$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS)
+ $$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare
@rm -f $$@
$$(call concat_cmd,$$(KERNEL))
$$(if $$(KERNEL_SIZE),$$(call Build/check-size,$$(KERNEL_SIZE)))