Diff file is attached.

 

Erdem.

 

From: Erdem Ergen 
Sent: Friday, December 11, 2009 12:12 AM
To: '[email protected]'
Subject: [PATCH] Kernel is downloaded although "Advanced configuration
options (for developers) -> Use external kernel tree" is selected.

 

This patch fixes/prevents unnecessary download of Linux kernel if
"Advanced configuration options (for developers) -> Use external kernel
tree" is selected.

 

As you know, there is an option "Advanced configuration options (for
developers) -> Use external kernel tree", and if we select and type the
directory of special kernel it uses this kernel. This configuration does
not require downloading kernel, but it does. So that patch prevents
unnecessary download of kernel.

 

Signed-off-by: Erdem Ergen <[email protected]> 

 

diff --git a/include/host-build.mk b/include/host-build.mk

index 8eb49c8..09ec42e 100644

--- a/include/host-build.mk

+++ b/include/host-build.mk

@@ -112,10 +112,20 @@ define Host/Exports/Default

 endef

 Host/Exports=$(Host/Exports/Default)

 

+iflinux:=

+ifeq ($(strip $(PKG_NAME)),linux)

+ifneq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")

+DownloadPackage = 

+else

+DownloadPackage = $(call Download,default)

+endif

+endif

+

 ifndef DUMP

   define HostBuild

   $(if $(HOST_QUILT),$(Host/Quilt))

-  $(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip
$(PKG_SOURCE_URL)),$(call Download,default)))

+  $(eval $(call iflinux))

+  $(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip
$(PKG_SOURCE_URL)),$(DownloadPackage)))

   $(if $(DUMP),,$(call HostHost/Autoclean))

 

   $(HOST_STAMP_PREPARED):

 

 

Attachment: diff_kerneldownload
Description: diff_kerneldownload

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to