X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=include%2Fkernel-version.mk;h=adf9712f004c9c959654ca067cddec76e5c54af4;hp=0cde46732dd96ef6c728e1798609a0053b6a9c69;hb=c72e6582c073b489348df3fedb273456d504559f;hpb=758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7 diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 0cde46732d..adf9712f00 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -2,17 +2,30 @@ LINUX_RELEASE?=1 -LINUX_VERSION-3.18 = .43 -LINUX_VERSION-4.1 = .34 -LINUX_VERSION-4.4 = .36 +LINUX_VERSION-3.18 = .71 +LINUX_VERSION-4.4 = .112 +LINUX_VERSION-4.9 = .77 +LINUX_VERSION-4.14 = .18 -LINUX_KERNEL_MD5SUM-3.18.43 = b1faeb4a2e1e70ffe061bdbb3452840a -LINUX_KERNEL_MD5SUM-4.1.34 = fba99f0f4765ebf01033e69518740a3c -LINUX_KERNEL_MD5SUM-4.4.36 = c23de77131c05a27e638026972ada85b +LINUX_KERNEL_HASH-3.18.71 = 5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240 +LINUX_KERNEL_HASH-4.4.112 = 544b42cbeed022896115c76a18fc97b4507d5b41d7ac0ce1dce9afd6ffd11ecd +LINUX_KERNEL_HASH-4.9.77 = 7c29bc3fb96f1e23d98f664e786dddd53a1599f56431b9b7fdfba402a4b3705c +LINUX_KERNEL_HASH-4.14.18 = 866a94c1c38d923ae18e74b683d7a8a79b674ebdfe7f40f1a3be9a27d39fe354 +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 +endif split_version=$(subst ., ,$(1)) merge_version=$(subst $(space),.,$(1)) @@ -21,5 +34,5 @@ KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))) KERNEL_PATCHVER ?= $(KERNEL) # disable the md5sum check for unknown kernel versions -LINUX_KERNEL_MD5SUM:=$(LINUX_KERNEL_MD5SUM-$(strip $(LINUX_VERSION))) -LINUX_KERNEL_MD5SUM?=x +LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION))) +LINUX_KERNEL_HASH?=x