2006-12-25 17:12:57 +08:00
|
|
|
# Use the default kernel version if the Makefile doesn't override it
|
|
|
|
|
|
2007-06-28 13:52:00 +08:00
|
|
|
LINUX_RELEASE?=1
|
|
|
|
|
|
2019-04-28 01:13:07 +08:00
|
|
|
ifdef CONFIG_TESTING_KERNEL
|
|
|
|
|
KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
|
|
|
|
|
endif
|
|
|
|
|
|
2020-08-01 01:55:39 +08:00
|
|
|
LINUX_VERSION-4.14 = .193
|
2020-08-01 01:41:26 +08:00
|
|
|
LINUX_VERSION-4.19 = .138
|
2020-08-26 18:29:39 +08:00
|
|
|
LINUX_VERSION-5.4 = .61
|
2007-06-28 13:52:00 +08:00
|
|
|
|
2020-08-01 01:55:39 +08:00
|
|
|
LINUX_KERNEL_HASH-4.14.193 = 0b0fb41d4430e1a42738b341cbfd2f41951aa5cd02acabbd53f076119c8b9f03
|
2020-08-01 01:41:26 +08:00
|
|
|
LINUX_KERNEL_HASH-4.19.138 = d15c27d05f6c527269b75b30cc72972748e55720e7e00ad8abbaa4fe3b1d5e02
|
2020-08-26 18:29:39 +08:00
|
|
|
LINUX_KERNEL_HASH-5.4.61 = 86f13d050f6389c5a1727fa81510ee8eceac795297bc584f443354609617fea4
|
2014-10-24 21:04:08 +08:00
|
|
|
|
2018-01-15 22:50:38 +08: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 21:04:08 +08:00
|
|
|
ifdef KERNEL_PATCHVER
|
|
|
|
|
LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
|
|
|
|
|
endif
|
2019-04-28 01:13:07 +08:00
|
|
|
ifdef KERNEL_TESTING_PATCHVER
|
|
|
|
|
LINUX_TESTING_VERSION:=$(KERNEL_TESTING_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_TESTING_PATCHVER)))
|
|
|
|
|
endif
|
2018-01-15 22:50:38 +08:00
|
|
|
endif
|
2007-06-28 13:52:00 +08:00
|
|
|
|
2009-03-03 21:54:29 +08:00
|
|
|
split_version=$(subst ., ,$(1))
|
|
|
|
|
merge_version=$(subst $(space),.,$(1))
|
2009-03-09 23:05:57 +08:00
|
|
|
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
|
|
|
|
|
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
|
2014-10-24 21:04:08 +08:00
|
|
|
KERNEL_PATCHVER ?= $(KERNEL)
|
2006-12-25 17:12:57 +08:00
|
|
|
|
2014-10-24 21:04:08 +08:00
|
|
|
# disable the md5sum check for unknown kernel versions
|
2016-12-17 00:32:10 +08:00
|
|
|
LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION)))
|
|
|
|
|
LINUX_KERNEL_HASH?=x
|