mirror of https://github.com/hak5/openwrt.git
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>openwrt-18.06
parent
080c6fa476
commit
0d6494daf5
|
@ -419,7 +419,7 @@ define Device/Build/initramfs
|
||||||
$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)
|
$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)
|
||||||
cp $$^ $$@
|
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 $$@
|
@rm -f $$@
|
||||||
$$(call concat_cmd,$$(KERNEL_INITRAMFS))
|
$$(call concat_cmd,$$(KERNEL_INITRAMFS))
|
||||||
endef
|
endef
|
||||||
|
@ -443,7 +443,7 @@ define Device/Build/kernel
|
||||||
ifdef CONFIG_IB
|
ifdef CONFIG_IB
|
||||||
install: $$(KDIR_KERNEL_IMAGE)
|
install: $$(KDIR_KERNEL_IMAGE)
|
||||||
endif
|
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 $$@
|
@rm -f $$@
|
||||||
$$(call concat_cmd,$$(KERNEL))
|
$$(call concat_cmd,$$(KERNEL))
|
||||||
$$(if $$(KERNEL_SIZE),$$(call Build/check-size,$$(KERNEL_SIZE)))
|
$$(if $$(KERNEL_SIZE),$$(call Build/check-size,$$(KERNEL_SIZE)))
|
||||||
|
|
Loading…
Reference in New Issue