X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fkernel-version.mk;h=a37edf29d55ac3b8bea6d5d334d0effe30d8b7d4;hb=5d6040bfaef331728c758c82c63fd579db1ab59b;hp=4a0798fcf670c2f43b4172221befcba6d663067a;hpb=414e59d258bd0298c6dc0fe6a4ffff321d1afa21;p=openwrt.git diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 4a0798fcf6..7023ff0e68 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -1,29 +1,27 @@ # Use the default kernel version if the Makefile doesn't override it -ifeq ($(KERNEL),2.4) - LINUX_VERSION?=2.4.37.5 -else - LINUX_VERSION?=2.6.21.7 -endif LINUX_RELEASE?=1 -ifeq ($(LINUX_VERSION),2.4.37.5) - LINUX_KERNEL_MD5SUM:=cb221187422acaf6c63a40c646e5e476 +ifeq ($(LINUX_VERSION),3.3.8) + LINUX_KERNEL_MD5SUM:=f1058f64eed085deb44f10cee8541d50 +endif +ifeq ($(LINUX_VERSION),3.6.11) + LINUX_KERNEL_MD5SUM:=3d602ad7f7984509c3e923a5ae90bc54 endif -ifeq ($(LINUX_VERSION),2.6.21.7) - LINUX_KERNEL_MD5SUM:=bc15fad1487336d5dcb0945cd039d8ed +ifeq ($(LINUX_VERSION),3.8.13) + LINUX_KERNEL_MD5SUM:=2af19d06cd47ec459519159cdd10542d endif -ifeq ($(LINUX_VERSION),2.6.25.20) - LINUX_KERNEL_MD5SUM:=0da698edccf03e2235abc2830a495114 +ifeq ($(LINUX_VERSION),3.9.11) + LINUX_KERNEL_MD5SUM:=edbf88eb7f7d34dbd5d3887726790755 endif -ifeq ($(LINUX_VERSION),2.6.30.10) - LINUX_KERNEL_MD5SUM:=eb6be465f914275967a5602cb33662f5 +ifeq ($(LINUX_VERSION),3.10.49) + LINUX_KERNEL_MD5SUM:=9774e12764e740d49c80eda77d0ef3eb endif -ifeq ($(LINUX_VERSION),2.6.31.12) - LINUX_KERNEL_MD5SUM:=517be354b81b780e2f4b2ad614d030de +ifeq ($(LINUX_VERSION),3.13.7) + LINUX_KERNEL_MD5SUM:=370adced5e5c1cb1d0d621c2dae2723f endif -ifeq ($(LINUX_VERSION),2.6.32.6) - LINUX_KERNEL_MD5SUM:=5ad2ea7b6aed2d857dd9bb5ae03588e4 +ifeq ($(LINUX_VERSION),3.14.16) + LINUX_KERNEL_MD5SUM:=469c879236ed694f60b81122e91ca02e endif # disable the md5sum check for unknown kernel versions @@ -33,5 +31,9 @@ split_version=$(subst ., ,$(1)) merge_version=$(subst $(space),.,$(1)) KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION))) KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE)))) -KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE)))) +ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2) + KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE)))) +else + KERNEL_PATCHVER=$(KERNEL) +endif