include: fix kernel download failure with git & local trees
[openwrt/staging/florian.git] / include / kernel-build.mk
index d34365837d6476feb5be155c035da73362400116..2bf639218a46cf036b32013e7d97ff9eca5cc335 100644 (file)
@@ -117,7 +117,7 @@ define BuildKernel
   define BuildKernel
   endef
 
-  download: $(DL_DIR)/$(LINUX_SOURCE)
+  download: $(if $(LINUX_SITE),$(DL_DIR)/$(LINUX_SOURCE))
   prepare: $(STAMP_CONFIGURED)
   compile: $(LINUX_DIR)/.modules
        $(MAKE) -C image compile TARGET_BUILD=