do not download kernel sources when using an external kernel tree
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 Dec 2009 13:54:03 +0000 (13:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 Dec 2009 13:54:03 +0000 (13:54 +0000)
SVN-Revision: 18777

include/kernel.mk

index ee4d4b8dc648c63a496030327aeb1da24ed63a07..480b9682ce3c8a5066a4bafc94197860daa274df 100644 (file)
@@ -42,7 +42,9 @@ else
 
   LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2
   TESTING:=$(if $(findstring -rc,$(LINUX_VERSION)),/testing,)
-  LINUX_SITE:=@KERNEL/linux/kernel/v$(KERNEL)$(TESTING) \
+  ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE)),)
+    LINUX_SITE:=@KERNEL/linux/kernel/v$(KERNEL)$(TESTING)
+  endif
 
   ifneq ($(TARGET_BUILD),1)
     PKG_BUILD_DIR ?= $(KERNEL_BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))