summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2018-04-02 20:36:22 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-02 20:50:50 +0200
commite8ddb6998f3f894022e683dd8726bfdee46b0cc3 (patch)
treeef07b85814d2d9113e1482385f4a6f696a250122
parentbf4fc26f1ae8b516c4d1c4701625c3598af574e4 (diff)
downloadbuildroot-e8ddb6998f3f894022e683dd8726bfdee46b0cc3.tar.gz
buildroot-e8ddb6998f3f894022e683dd8726bfdee46b0cc3.zip
cargo: use HOST_CARGO_DL_DIR instead of CARGO_DL_DIR
The infrastructure only provides HOST_CARGO_DL_DIR, because this package is host only. Ideally the infra should provide CARGO_DL_DIR, but it doesn't currently, and that requires more significant changes. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/cargo/cargo.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/cargo/cargo.mk b/package/cargo/cargo.mk
index 36b2718e90..b3174f5b20 100644
--- a/package/cargo/cargo.mk
+++ b/package/cargo/cargo.mk
@@ -37,7 +37,7 @@ HOST_CARGO_HOME = $(HOST_DIR)/share/cargo
define HOST_CARGO_EXTRACT_DEPS
@mkdir -p $(@D)/vendor
$(call suitable-extractor,$(CARGO_DEPS_SOURCE)) \
- $(CARGO_DL_DIR)/$(CARGO_DEPS_SOURCE) | \
+ $(HOST_CARGO_DL_DIR)/$(CARGO_DEPS_SOURCE) | \
$(TAR) --strip-components=1 -C $(@D)/vendor $(TAR_OPTIONS) -
endef
@@ -46,7 +46,7 @@ HOST_CARGO_POST_EXTRACT_HOOKS += HOST_CARGO_EXTRACT_DEPS
define HOST_CARGO_EXTRACT_INSTALLER
@mkdir -p $(@D)/src/rust-installer
$(call suitable-extractor,$(CARGO_INSTALLER_SOURCE)) \
- $(CARGO_DL_DIR)/$(CARGO_INSTALLER_SOURCE) | \
+ $(HOST_CARGO_DL_DIR)/$(CARGO_INSTALLER_SOURCE) | \
$(TAR) --strip-components=1 -C $(@D)/src/rust-installer $(TAR_OPTIONS) -
endef
OpenPOWER on IntegriCloud