add PKG_HOST_ONLY variable to prevent target builds
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 Mar 2009 02:37:04 +0000 (02:37 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 Mar 2009 02:37:04 +0000 (02:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14906 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 892cde9..a6118fb 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 191dec9..c134f54 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
This page took 0.032172 seconds and 4 git commands to generate.