add PKG_HOST_ONLY variable to prevent target builds
authorFelix Fietkau <nbd@openwrt.org>
Tue, 17 Mar 2009 02:37:04 +0000 (02:37 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 17 Mar 2009 02:37:04 +0000 (02:37 +0000)
SVN-Revision: 14906

include/host-build.mk
include/package.mk

index 892cde91f5b040b5f1a976b0ec0e4a11665fffd5..a6118fb06f576d0183f5907b4d8f9f69f6be7fc1 100644 (file)
@@ -97,7 +97,7 @@ endef
 ifndef DUMP
   define HostBuild
   $(if $(QUILT),$(Host/Quilt))
-  $(if $(STAMP_PREPARED),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default)))
+  $(if $(if $(PKG_HOST_ONLY),,$(STAMP_PREPARED)),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default)))
   $(if $(DUMP),,$(call HostHost/Autoclean))
 
   $(HOST_STAMP_PREPARED):
index 191dec9ca7a2edf384b2744c48e5fd78d9dff35a..c134f542ed14365ce0f5cd82c13f8874380d313b 100644 (file)
@@ -156,7 +156,7 @@ endif
       ), $(BuildTarget/$(target)) \
     ) \
   )
-  $(if $(DUMP),,$(call Build/DefaultTargets,$(1)))
+  $(if $(PKG_HOST_ONLY)$(DUMP),,$(call Build/DefaultTargets,$(1)))
 endef
 
 define pkg_install_files