[source] kernel: include: remove last .0 from kernel versions again
LEDE Commits
lede-commits at lists.infradead.org
Sat Dec 16 13:18:36 PST 2017
hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/5c944d95ecc3c0f0e1d0f33d18574c1b7d29f6dd
commit 5c944d95ecc3c0f0e1d0f33d18574c1b7d29f6dd
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Fri Nov 17 22:55:03 2017 +0100
kernel: include: remove last .0 from kernel versions again
Kernel 4.14 has the version number 4.14 and not 4.14.0. This was
different in some older Linux kernel versions, This change makes it
possible to use kernel 4.14 without any minor version.
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
include/kernel.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/kernel.mk b/include/kernel.mk
index 8cb0def..1b6006a 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -52,7 +52,7 @@ else
LINUX_VERMAGIC:=$(strip $(shell cat $(LINUX_DIR)/.vermagic 2>/dev/null))
LINUX_VERMAGIC:=$(if $(LINUX_VERMAGIC),$(LINUX_VERMAGIC),unknown)
- LINUX_UNAME_VERSION:=$(if $(word 3,$(subst ., ,$(KERNEL_BASE))),$(KERNEL_BASE),$(KERNEL_BASE).0)
+ LINUX_UNAME_VERSION:=$(KERNEL_BASE)
ifneq ($(findstring -rc,$(LINUX_VERSION)),)
LINUX_UNAME_VERSION:=$(LINUX_UNAME_VERSION)-$(strip $(lastword $(subst -, ,$(LINUX_VERSION))))
endif
More information about the lede-commits
mailing list