From 5810934476a39b04950eda2c8be1b73f4ad8ee7f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 9 Mar 2009 15:05:57 +0000 Subject: [PATCH] fix KERNEL_PATCHVER for rc kernels SVN-Revision: 14808 --- include/kernel-version.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))))