From 14a54ed18d3017763272dfa65e3f7fc32d39dc60 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Tue, 31 Mar 2015 16:52:03 +0000
Subject: [PATCH] build: make device image kernels depend on Image/Prepare step

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45190
---
 include/image.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/image.mk b/include/image.mk
index 08b516d854..8d201447fc 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -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 $$^ $$@
-- 
GitLab