summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-09 15:05:57 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-09 15:05:57 +0000
commitf716e82e6e477af0b82b9377d55f2c2285f4fa7d (patch)
treede971320262441dcf20c70c35457fb75931ffc20 /include
parent29ec5d802c648afb89dd4f326bc4752f40ad7416 (diff)
fix KERNEL_PATCHVER for rc kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14808 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/kernel-version.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 003fc085b3..c3e3e140a0 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -40,6 +40,7 @@ LINUX_KERNEL_MD5SUM?=x
split_version=$(subst ., ,$(1))
merge_version=$(subst $(space),.,$(1))
-KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(LINUX_VERSION))))
+KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
+KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(LINUX_VERSION))))