aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-version.mk
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
commit5810934476a39b04950eda2c8be1b73f4ad8ee7f (patch)
treed5f4335fc7e25a7636f5f2dcdc54323c41d080af /include/kernel-version.mk
parent7f4bc03adba090389160e0a5d86d72b006572c99 (diff)
downloadupstream-5810934476a39b04950eda2c8be1b73f4ad8ee7f.tar.gz
upstream-5810934476a39b04950eda2c8be1b73f4ad8ee7f.tar.bz2
upstream-5810934476a39b04950eda2c8be1b73f4ad8ee7f.zip
fix KERNEL_PATCHVER for rc kernels
SVN-Revision: 14808
Diffstat (limited to 'include/kernel-version.mk')
-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))))