fix KERNEL_PATCHVER for rc kernels
authorFelix Fietkau <nbd@openwrt.org>
Mon, 9 Mar 2009 15:05:57 +0000 (15:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 9 Mar 2009 15:05:57 +0000 (15:05 +0000)
SVN-Revision: 14808

include/kernel-version.mk

index 003fc08..c3e3e14 100644 (file)
@@ -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))))