summaryrefslogtreecommitdiffstats
path: root/package/rust/rust.mk
diff options
context:
space:
mode:
authorEric Le Bihan <eric.le.bihan.dev@free.fr>2018-02-13 08:21:27 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-02-13 23:09:47 +0100
commitf69c5192679de30e8af99885c6cd487e12ff0a25 (patch)
treea671e308488f400bc230d353089d9ca51f0adf65 /package/rust/rust.mk
parenteb303348b51a863804941e81fcb821d9fb1077cf (diff)
downloadbuildroot-f69c5192679de30e8af99885c6cd487e12ff0a25.tar.gz
buildroot-f69c5192679de30e8af99885c6cd487e12ff0a25.zip
rustc: use RUSTC_{HOST,TARGET}_NAME
utils/check-package complains as follows: package/rustc/rustc.mk:10: possible typo: RUST_TARGET_NAME -> *RUSTC* package/rustc/rustc.mk:18: possible typo: RUST_HOST_NAME -> *RUSTC* As RUST_{HOST,TARGET}_NAME are related to the Rust compiler, it sounds sensible to rename them to RUSTC_{HOST,TARGET}_NAME. So update all rust related packages to use the new variables. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/rust/rust.mk')
-rw-r--r--package/rust/rust.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/rust/rust.mk b/package/rust/rust.mk
index 6d6ac4370a..ff2634b996 100644
--- a/package/rust/rust.mk
+++ b/package/rust/rust.mk
@@ -48,7 +48,7 @@ HOST_RUST_POST_EXTRACT_HOOKS += HOST_RUST_EXCLUDE_ORIG_FILES
define HOST_RUST_CONFIGURE_CMDS
( \
echo '[build]'; \
- echo 'target = ["$(RUST_TARGET_NAME)"]'; \
+ echo 'target = ["$(RUSTC_TARGET_NAME)"]'; \
echo 'cargo = "$(HOST_CARGO_BIN_DIR)/cargo/bin/cargo"'; \
echo 'rustc = "$(HOST_RUST_BIN_DIR)/rustc/bin/rustc"'; \
echo 'python = "$(HOST_DIR)/bin/python2"'; \
@@ -61,7 +61,7 @@ define HOST_RUST_CONFIGURE_CMDS
echo 'prefix = "$(HOST_DIR)"'; \
echo '[rust]'; \
echo 'use-jemalloc = $(HOST_RUST_JEMALLOC_ENABLED)'; \
- echo '[target.$(RUST_TARGET_NAME)]'; \
+ echo '[target.$(RUSTC_TARGET_NAME)]'; \
echo 'cc = "$(TARGET_CROSS)gcc"'; \
echo $(HOST_RUST_JEMALLOC_CONF); \
) > $(@D)/config.toml
OpenPOWER on IntegriCloud