targets: add kernel image dependencies on device tree files
[openwrt/staging/chunkeey.git] / target / linux / bcm53xx / image / Makefile
index c9987dddc78aedadbe78ea45215418073825ea1f..d9d4a80fa1098781799c318078bf7fe2356611ca 100644 (file)
@@ -67,6 +67,7 @@ define Device/Default
   # extract the full dtb name based on the device info
   DT := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(1).dtb)))
   KERNEL := kernel-bin | append-dtb | lzma-d16
+  KERNEL_DEPENDS = $$(wildcard $(KDIR)/$$(DT).dts)
   FILESYSTEMS := squashfs
   KERNEL_NAME := zImage
   IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)