libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled
[15.05/openwrt.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.18 = .45
6
7 LINUX_KERNEL_MD5SUM-3.18.45 = c527bae0aa1a5d6f3ebe31ad348c5339
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_MD5SUM:=$(LINUX_KERNEL_MD5SUM-$(strip $(LINUX_VERSION)))
21 LINUX_KERNEL_MD5SUM?=x