Bump linux-libre kernel to 4.4.181
[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 = .181
6
7 LINUX_KERNEL_HASH-4.4.181 = 9488e16b7e189ca3b914396120557c571aa4a6290f15010c3413bd3b143a2dc7
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