aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-09 15:05:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-09 15:05:57 +0000
commit437c1c32bcd27ce09c2a5bcb7a186cc1fd13c8b0 (patch)
treede971320262441dcf20c70c35457fb75931ffc20 /include
parent251b27b00f8f764c90dba4041a5cebe60feb7b5a (diff)
downloadupstream-437c1c32bcd27ce09c2a5bcb7a186cc1fd13c8b0.tar.gz
upstream-437c1c32bcd27ce09c2a5bcb7a186cc1fd13c8b0.tar.bz2
upstream-437c1c32bcd27ce09c2a5bcb7a186cc1fd13c8b0.zip
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))))