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 003fc085b38cbb9ba5588be63128e0fbec986f7f..c3e3e140a043ad0ab40b3cd771949b0738bee0e1 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))))