X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/aeb70915fb9ad48527d584f6a8c27ec132fea7d9..8d05a2ae7e488f74b0203eebe580aab3bae53ca6:/include/kernel.mk diff --git a/include/kernel.mk b/include/kernel.mk index 020779fd6..d8f582c7b 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -47,8 +47,12 @@ else LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2 TESTING:=$(if $(findstring -rc,$(LINUX_VERSION)),/testing,) - ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE)),) - LINUX_SITE:=@KERNEL/linux/kernel/v$(KERNEL)$(TESTING) + ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) + ifeq ($(word 1,$(subst ., ,$(KERNEL_BASE))),3) + LINUX_SITE:=@KERNEL/linux/kernel/v3.x$(TESTING) + else + LINUX_SITE:=@KERNEL/linux/kernel/v$(KERNEL)$(TESTING) + endif endif ifneq ($(TARGET_BUILD),1)