From: Eric Le Bihan Date: Fri, 7 Feb 2020 18:08:22 +0000 (+0100) Subject: package/cargo-bin: install if rust-bin selected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a84bb83092ff5be283ad5e4bcadbcb0edcaa780;p=buildroot.git package/cargo-bin: install if rust-bin selected If host-rust-bin, the pre-built Rust compiler, is selected as a rustc provider, then also install the pre-built cargo binary to be coherent. Signed-off-by: Eric Le Bihan Signed-off-by: Patrick Havelange [Arnout: don't install cargo config, alread moved] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Reviewed-by: David Pierret Tested-by: David Pierret Signed-off-by: Thomas Petazzoni --- diff --git a/package/cargo-bin/cargo-bin.mk b/package/cargo-bin/cargo-bin.mk index 3614f7a53d..3eaf417531 100644 --- a/package/cargo-bin/cargo-bin.mk +++ b/package/cargo-bin/cargo-bin.mk @@ -10,4 +10,10 @@ CARGO_BIN_SOURCE = cargo-$(CARGO_BIN_VERSION)-$(RUSTC_HOST_NAME).tar.xz CARGO_BIN_LICENSE = Apache-2.0 or MIT CARGO_BIN_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT +ifeq ($(BR2_PACKAGE_HOST_RUST_BIN),y) +define HOST_CARGO_BIN_INSTALL_CMDS + $(@D)/install.sh --prefix=$(HOST_DIR) --disable-ldconfig +endef +endif + $(eval $(host-generic-package))