aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-version.mk
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2011-06-15 21:10:33 +0000
committerHauke Mehrtens <hauke@openwrt.org>2011-06-15 21:10:33 +0000
commit4389c3de12ae4cde5f180f0909294da3f9e64b25 (patch)
treefefe638b16903d0115477e1d72ac36868681b5e3 /include/kernel-version.mk
parentd26464abb6f9c74f2e2aac4e0bfe57908bc76ca1 (diff)
downloadupstream-4389c3de12ae4cde5f180f0909294da3f9e64b25.tar.gz
upstream-4389c3de12ae4cde5f180f0909294da3f9e64b25.tar.bz2
upstream-4389c3de12ae4cde5f180f0909294da3f9e64b25.zip
Properly extract KERNEL_PATCHVER for linux 3.0
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27183 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/kernel-version.mk')
-rw-r--r--include/kernel-version.mk6
1 files changed, 5 insertions, 1 deletions
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