Bump kernel up to 4.4.145 and fix usb.ids hash
[librecmc/librecmc.git] / include / kernel-version.mk
1 # Use the default kernel version if the Makefile doesn't override it
2
3 LINUX_RELEASE?=1
4
5 LINUX_VERSION-4.4 = .145
6
7 LINUX_KERNEL_HASH-4.4.145 = 77d14cbc635bd5eca796d2444b89dd98a525c1b851ddd123490139c3566414b1
8
9 ifdef KERNEL_PATCHVER
10   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
11 endif
12
13 split_version=$(subst ., ,$(1))
14 merge_version=$(subst $(space),.,$(1))
15 KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
16 KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
17 KERNEL_PATCHVER ?= $(KERNEL)
18
19 # disable the md5sum check for unknown kernel versions
20 LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION)))
21 LINUX_KERNEL_HASH?=x