X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7f3b481ec937e79225ef78f167070b2249e2f62a..f2b8e0d414b27ddb2902c6c7972ccb27282e0952:/include/kernel-version.mk 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))))