summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-06-07 23:59:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-06-07 23:59:04 +0000
commitde93bede138129886115d2597b32e34fb7b06ad4 (patch)
tree3ee1ce8112221d05f5491826997d52f45e75d726 /openwrt/target/linux/rules.mk
parentce3f164ea0ded53a181d04da5b12ec163e754046 (diff)
downloadmtk-20170518-de93bede138129886115d2597b32e34fb7b06ad4.zip
mtk-20170518-de93bede138129886115d2597b32e34fb7b06ad4.tar.gz
mtk-20170518-de93bede138129886115d2597b32e34fb7b06ad4.tar.bz2
make ramdisk support generic, some cleanups
SVN-Revision: 3911
Diffstat (limited to 'openwrt/target/linux/rules.mk')
-rw-r--r--openwrt/target/linux/rules.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk
index 1b40ab7..166bfe2 100644
--- a/openwrt/target/linux/rules.mk
+++ b/openwrt/target/linux/rules.mk
@@ -9,7 +9,10 @@ endif
MODULES_SUBDIR:=lib/modules/$(LINUX_VERSION)
LINUX_BUILD_DIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
-LINUX_DIR := $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)
+ifeq ($(LINUX_NAME),)
+LINUX_NAME:=linux-$(LINUX_VERSION)
+endif
+LINUX_DIR := $(LINUX_BUILD_DIR)/$(LINUX_NAME)
LINUX_KERNEL:=$(LINUX_BUILD_DIR)/vmlinux
LINUX_TARGET_DIR:=$(LINUX_BUILD_DIR)/root