X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fkernel-version.mk;h=a37edf29d55ac3b8bea6d5d334d0effe30d8b7d4;hb=5d6040bfaef331728c758c82c63fd579db1ab59b;hp=ad94c8e00b81e750add897ce1e968eb3560cdaba;hpb=1c583f3a1fc86853cccc15713907696a430004f3;p=openwrt.git diff --git a/include/kernel-version.mk b/include/kernel-version.mk index ad94c8e00b..7023ff0e68 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -1,32 +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),2.6.21.7) - LINUX_KERNEL_MD5SUM:=bc15fad1487336d5dcb0945cd039d8ed +ifeq ($(LINUX_VERSION),3.6.11) + LINUX_KERNEL_MD5SUM:=3d602ad7f7984509c3e923a5ae90bc54 endif -ifeq ($(LINUX_VERSION),2.6.25.20) - LINUX_KERNEL_MD5SUM:=0da698edccf03e2235abc2830a495114 +ifeq ($(LINUX_VERSION),3.8.13) + LINUX_KERNEL_MD5SUM:=2af19d06cd47ec459519159cdd10542d endif -ifeq ($(LINUX_VERSION),2.6.27.35) - LINUX_KERNEL_MD5SUM:=a4fa9eb5ee4876522e8015ca7da3ae40 +ifeq ($(LINUX_VERSION),3.9.11) + LINUX_KERNEL_MD5SUM:=edbf88eb7f7d34dbd5d3887726790755 endif -ifeq ($(LINUX_VERSION),2.6.28.10) - LINUX_KERNEL_MD5SUM:=c4efb2c494d749cb5de274f8ae41c3fa +ifeq ($(LINUX_VERSION),3.10.49) + LINUX_KERNEL_MD5SUM:=9774e12764e740d49c80eda77d0ef3eb endif -ifeq ($(LINUX_VERSION),2.6.30.9) - LINUX_KERNEL_MD5SUM:=5a4cd5543a9d7c1a819700b21be31ef1 +ifeq ($(LINUX_VERSION),3.13.7) + LINUX_KERNEL_MD5SUM:=370adced5e5c1cb1d0d621c2dae2723f endif -ifeq ($(LINUX_VERSION),2.6.31.5) - LINUX_KERNEL_MD5SUM:=926bff46d24e2f303e4ee92234e394d8 +ifeq ($(LINUX_VERSION),3.14.16) + LINUX_KERNEL_MD5SUM:=469c879236ed694f60b81122e91ca02e endif # disable the md5sum check for unknown kernel versions @@ -36,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