build: make device image kernels depend on Image/Prepare step
authorFelix Fietkau <nbd@openwrt.org>
Tue, 31 Mar 2015 16:52:03 +0000 (16:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 31 Mar 2015 16:52:03 +0000 (16:52 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45190

include/image.mk

index 08b516d854b5fa7f57f06c023d6bdfd9b6a19d97..8d201447fc327b63abb1f7bd602e7cecd18abda1 100644 (file)
@@ -378,6 +378,7 @@ define Device/Build/check_size
 endef
 
 define Device/Build/kernel
+  $(KDIR)/$$(KERNEL_NAME): image_prepare
   $$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE))
   $(BIN_DIR)/$$(KERNEL_IMAGE): $(KDIR)/$$(KERNEL_IMAGE)
        cp $$^ $$@