kernel-version: add linux kernel 2.6.32.71
[openwrt-14.07/.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-3.10 = .49
6 LINUX_VERSION-3.3 = .8
7 LINUX_VERSION-2.6.32 = .71
8
9 LINUX_KERNEL_MD5SUM-3.10.49 = 9774e12764e740d49c80eda77d0ef3eb
10 LINUX_KERNEL_MD5SUM-3.3.8:=21068f0fd262b9b3670947f7892e1d6b
11 LINUX_KERNEL_MD5SUM-2.6.32.71:=1dcf8eaa41fc479169be80d015bce4d9
12
13
14 ifdef KERNEL_PATCHVER
15   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
16 endif
17
18 split_version=$(subst ., ,$(1))
19 merge_version=$(subst $(space),.,$(1))
20 KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
21 KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
22 KERNEL_PATCHVER ?= $(KERNEL)
23
24 # disable the md5sum check for unknown kernel versions
25 LINUX_KERNEL_MD5SUM:=$(LINUX_KERNEL_MD5SUM-$(strip $(LINUX_VERSION)))
26 LINUX_KERNEL_MD5SUM?=x