X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e9bc27949d3517d936be28512fe8886cc314f30e..9fac3efb038a82d7abee51abd3df73695803224d:/include/host-build.mk diff --git a/include/host-build.mk b/include/host-build.mk index 8ad8f79d9..a0ffd83b6 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -1,5 +1,5 @@ -# -# Copyright (C) 2006-2008 OpenWrt.org +# +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -25,7 +25,7 @@ include $(INCLUDE_DIR)/quilt.mk Host/Patch:=$(Host/Patch/Default) ifneq ($(strip $(HOST_UNPACK)),) define Host/Prepare/Default - $(HOST_UNPACK) + $(HOST_UNPACK) $(Host/Patch) endef endif @@ -58,6 +58,7 @@ define Host/Configure/Default $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \ $(2) \ $(HOST_CONFIGURE_CMD) \ + $(HOST_CONFIGURE_VARS) \ $(HOST_CONFIGURE_ARGS) \ $(1); \ fi \ @@ -97,7 +98,7 @@ ifndef DUMP $(if $(QUILT),$(Host/Quilt)) $(if $(STAMP_PREPARED),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) $(if $(DUMP),,$(call HostHost/Autoclean)) - + $(HOST_STAMP_PREPARED): @-rm -rf $(HOST_BUILD_DIR) @mkdir -p $(HOST_BUILD_DIR) @@ -116,12 +117,12 @@ ifndef DUMP $(call Host/Install) mkdir -p $$(shell dirname $$@) touch $$@ - + ifdef Host/Install host-install: $(HOST_STAMP_INSTALLED) endif - download: + $(if $(STAMP_BUILT),compile: host-install) host-prepare: $(HOST_STAMP_PREPARED) host-configure: $(HOST_STAMP_CONFIGURED) host-compile: $(HOST_STAMP_BUILT) @@ -133,6 +134,7 @@ ifndef DUMP endef + download: prepare: host-prepare compile: host-compile install: host-install