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 <eer...@ubicom.com> 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):
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel