2006-12-25 09:12:57 +00:00
|
|
|
# Use the default kernel version if the Makefile doesn't override it
|
|
|
|
|
2007-06-28 05:52:00 +00:00
|
|
|
LINUX_RELEASE?=1
|
|
|
|
|
2018-09-06 12:21:05 +00:00
|
|
|
LINUX_VERSION-3.18 = .121
|
2018-09-06 12:23:27 +00:00
|
|
|
LINUX_VERSION-4.9 = .125
|
2018-09-06 12:25:15 +00:00
|
|
|
LINUX_VERSION-4.14 = .68
|
2007-06-28 05:52:00 +00:00
|
|
|
|
2018-09-06 12:21:05 +00:00
|
|
|
LINUX_KERNEL_HASH-3.18.121 = 7a8a996433e4af1abd2903f91c390295745d90dd178607b3af82f2df5f95c9b0
|
2018-09-06 12:23:27 +00:00
|
|
|
LINUX_KERNEL_HASH-4.9.125 = a764deef61bebfac1d07b2ed6890f93a12a9ab6d3fc3c53e3d850ed4681111cb
|
2018-09-06 12:25:15 +00:00
|
|
|
LINUX_KERNEL_HASH-4.14.68 = 791dbf1597033bf2b61e83307d78188ffc1ad4bdd1da3234876667edfdd28690
|
2014-10-24 13:04:08 +00:00
|
|
|
|
2018-01-15 14:50:38 +00:00
|
|
|
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
|
2014-10-24 13:04:08 +00:00
|
|
|
ifdef KERNEL_PATCHVER
|
|
|
|
LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
|
|
|
|
endif
|
2018-01-15 14:50:38 +00:00
|
|
|
endif
|
2007-06-28 05:52:00 +00:00
|
|
|
|
2009-03-03 13:54:29 +00:00
|
|
|
split_version=$(subst ., ,$(1))
|
|
|
|
merge_version=$(subst $(space),.,$(1))
|
2009-03-09 15:05:57 +00:00
|
|
|
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
|
|
|
|
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
|
2014-10-24 13:04:08 +00:00
|
|
|
KERNEL_PATCHVER ?= $(KERNEL)
|
2006-12-25 09:12:57 +00:00
|
|
|
|
2014-10-24 13:04:08 +00:00
|
|
|
# disable the md5sum check for unknown kernel versions
|
2016-12-16 16:32:10 +00:00
|
|
|
LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION)))
|
|
|
|
LINUX_KERNEL_HASH?=x
|