summaryrefslogtreecommitdiff
path: root/openwrt/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-01 00:47:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-01 00:47:29 +0000
commitc8ec7f76470dddcce6139cc2db28195052a71126 (patch)
tree9813d933563328044d1cb0d88546ea9bcf59373b /openwrt/target/linux
parent86aca71a36a3be3db65ba213bfb5afd5a52664bd (diff)
downloadmtk-20170518-c8ec7f76470dddcce6139cc2db28195052a71126.zip
mtk-20170518-c8ec7f76470dddcce6139cc2db28195052a71126.tar.gz
mtk-20170518-c8ec7f76470dddcce6139cc2db28195052a71126.tar.bz2
fix dependency problem
SVN-Revision: 3885
Diffstat (limited to 'openwrt/target/linux')
-rw-r--r--openwrt/target/linux/kernel.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/openwrt/target/linux/kernel.mk b/openwrt/target/linux/kernel.mk
index 346fb7f..4b8bf13 100644
--- a/openwrt/target/linux/kernel.mk
+++ b/openwrt/target/linux/kernel.mk
@@ -8,9 +8,12 @@ KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg
$(TARGETS): $(PACKAGE_DIR)
+$(LINUX_DIR):
+ mkdir -p $@
+
$(PACKAGE_DIR):
- mkdir -p $(PACKAGE_DIR)
-
+ mkdir -p $@
+
$(DL_DIR)/$(LINUX_SOURCE):
-mkdir -p $(DL_DIR)
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE)
@@ -67,7 +70,7 @@ $(KERNEL_IPKG):
fi
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR)
-$(BUILD_DIR)/kernel.mk: FORCE
+$(BUILD_DIR)/kernel.mk: $(LINUX_DIR) FORCE
echo "BOARD:=$(BOARD)" > $@
echo "LINUX_VERSION:=$(LINUX_VERSION)" >> $@
echo "LINUX_RELEASE:=$(LINUX_RELEASE)" >> $@