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):