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 <eric.le.bihan.dev@free.fr>
Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com>
[Arnout: don't install cargo config, alread moved]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: David Pierret <david.pierret@smile.fr>
Tested-by: David Pierret <david.pierret@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Eric Le Bihan 2020-02-07 19:08:22 +01:00 committed by Thomas Petazzoni
parent 914b99cf03
commit 1a84bb8309

View File

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