Bump Linux-libre kernel to 4.4.178
[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 = .178
6
7 LINUX_KERNEL_HASH-4.4.178 = f7cab098ad71765985b39d30d09222e5d8809d55e3d9b2b018cbb40acc69fad1
8
9
10 ifdef KERNEL_PATCHVER
11   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
12 endif
13
14 split_version=$(subst ., ,$(1))
15 merge_version=$(subst $(space),.,$(1))
16 KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
17 KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
18 KERNEL_PATCHVER ?= $(KERNEL)
19
20 # disable the md5sum check for unknown kernel versions
21 LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION)))
22 LINUX_KERNEL_HASH?=x