kernel: Bump to 4.14.198
[librecmc/librecmc.git] / include / kernel-version.mk
index 1c1e99b462948678257672f02de231bf19cbb931..e60264b66fb0a7ab435a32ff256a4bf83379a079 100644 (file)
@@ -2,13 +2,32 @@
 
 LINUX_RELEASE?=1
 
-LINUX_VERSION-4.4 = .192
+ifdef CONFIG_TESTING_KERNEL
+  KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
+endif
+
+LINUX_VERSION-4.14 = .198
+
+LINUX_KERNEL_HASH-4.14.198 = 0322d619bff0a30e8e498b27f40f84e7437fe9edeb97132a6a9ded62188e8ca2
 
-LINUX_KERNEL_HASH-4.4.192 = e6f50259a4dfdf19ac5b3ceaf00561cf8da2ea971dc57cdacbe056e06b062055
 
+remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
+sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))
+
+ifneq ($(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),)
+  LINUX_VERSION:=$(call sanitize_uri,$(call remove_uri_prefix,$(CONFIG_KERNEL_GIT_CLONE_URI)))
+  ifeq ($(call qstrip,$(CONFIG_KERNEL_GIT_REF)),)
+    CONFIG_KERNEL_GIT_REF:=HEAD
+  endif
+  LINUX_VERSION:=$(LINUX_VERSION)-$(call sanitize_uri,$(CONFIG_KERNEL_GIT_REF))
+else
 ifdef KERNEL_PATCHVER
   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
 endif
+ifdef KERNEL_TESTING_PATCHVER
+  LINUX_TESTING_VERSION:=$(KERNEL_TESTING_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_TESTING_PATCHVER)))
+endif
+endif
 
 split_version=$(subst ., ,$(1))
 merge_version=$(subst $(space),.,$(1))