From: Hauke Mehrtens Date: Wed, 15 Jun 2011 21:10:33 +0000 (+0000) Subject: Properly extract KERNEL_PATCHVER for linux 3.0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=45ae45782529b11f743fd3c0f8e27879235cf11b;p=openwrt%2Fstaging%2Fthess.git Properly extract KERNEL_PATCHVER for linux 3.0 Signed-off-by: Jonas Gorski SVN-Revision: 27183 --- diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 4ce6771837..f47a3f31df 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -37,5 +37,9 @@ 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,$(KERNEL_BASE)))) +ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2) + KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE)))) +else + KERNEL_PATCHVER=$(KERNEL) +endif