From 3da81e77a5d445f1d220279d29199798ee76ad96 Mon Sep 17 00:00:00 2001 From: hauke Date: Wed, 15 Jun 2011 21:10:33 +0000 Subject: [PATCH] Properly extract KERNEL_PATCHVER for linux 3.0 Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27183 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/kernel-version.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 4ce677183..f47a3f31d 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