diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-09 15:05:57 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-09 15:05:57 +0000 |
commit | f716e82e6e477af0b82b9377d55f2c2285f4fa7d (patch) | |
tree | de971320262441dcf20c70c35457fb75931ffc20 | |
parent | 29ec5d802c648afb89dd4f326bc4752f40ad7416 (diff) |
fix KERNEL_PATCHVER for rc kernels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14808 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/kernel-version.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 003fc085b..c3e3e140a 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)))) |