X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c556e48ee51e0e9a939f82efbe049b02b4e5a522..03dc915dfee96da180e7b8c34b75559355bd1de5:/include/kernel.mk diff --git a/include/kernel.mk b/include/kernel.mk index a2dce091e..4744e09ef 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -14,7 +14,9 @@ ifeq ($(DUMP),1) BOARD?= LINUX_VERSION?= else - export GCC_HONOUR_COPTS=s + ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) + export GCC_HONOUR_COPTS=s + endif LINUX_KMOD_SUFFIX=ko @@ -46,7 +48,11 @@ 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 ($(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)