Bump linux-libre kernel to 4.4.179
[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 = .179
6
7 LINUX_KERNEL_HASH-4.4.179 = 4e0ddf96466c723c08888e8d6f5e86d755a89dc730d20e91ec6bc4a741a1b208
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