From: Felix Fietkau Date: Thu, 23 Apr 2009 14:55:07 +0000 (+0000) Subject: fix KERNEL_PATCHVER, properly strip -rc* suffixes X-Git-Tag: reboot~23905 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3afad10f04007dc2b7cb588fa7e78e4e192173e;p=oweals%2Fopenwrt.git fix KERNEL_PATCHVER, properly strip -rc* suffixes SVN-Revision: 15353 --- diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 1463958f67..07c318d942 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -45,5 +45,5 @@ split_version=$(subst ., ,$(1)) merge_version=$(subst $(space),.,$(1)) 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)))) +KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))