From: Felix Fietkau Date: Mon, 9 Mar 2009 15:05:57 +0000 (+0000) Subject: fix KERNEL_PATCHVER for rc kernels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5810934476a39b04950eda2c8be1b73f4ad8ee7f;p=openwrt%2Fstaging%2Fjow.git fix KERNEL_PATCHVER for rc kernels SVN-Revision: 14808 --- 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))))