X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fkernel-version.mk;h=a37edf29d55ac3b8bea6d5d334d0effe30d8b7d4;hb=5d6040bfaef331728c758c82c63fd579db1ab59b;hp=a6a7c6729c8d4e6f026b2022343219459ed46126;hpb=e86275357d076dc0f4c20a03b55b8904eaac6e30;p=openwrt.git diff --git a/include/kernel-version.mk b/include/kernel-version.mk index a6a7c6729c..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.4 -else - LINUX_VERSION?=2.6.21.7 -endif LINUX_RELEASE?=1 -ifeq ($(LINUX_VERSION),2.4.37.4) - LINUX_KERNEL_MD5SUM:= +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.27.28) - LINUX_KERNEL_MD5SUM:=f05cd17ba8ee19924c9c473219fbaa9b +ifeq ($(LINUX_VERSION),3.10.49) + LINUX_KERNEL_MD5SUM:=9774e12764e740d49c80eda77d0ef3eb endif -ifeq ($(LINUX_VERSION),2.6.28.10) - LINUX_KERNEL_MD5SUM:=c4efb2c494d749cb5de274f8ae41c3fa +ifeq ($(LINUX_VERSION),3.13.7) + LINUX_KERNEL_MD5SUM:=370adced5e5c1cb1d0d621c2dae2723f endif -ifeq ($(LINUX_VERSION),2.6.30.3) - LINUX_KERNEL_MD5SUM:=5499e1fd246215d65fc7068cfb040406 +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