Sfoglia il codice sorgente

add PKG_HOST_ONLY variable to prevent target builds

SVN-Revision: 14906
Felix Fietkau 16 anni fa
parent
commit
7ec4ad271e
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      include/host-build.mk
  2. 1 1
      include/package.mk

+ 1 - 1
include/host-build.mk

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

+ 1 - 1
include/package.mk

@@ -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