rust: modify Rust packaging to be usable as host-tool only
authorSam Voss <sam.voss@gmail.com>
Wed, 22 Aug 2018 22:33:50 +0000 (17:33 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 12 Sep 2018 21:44:57 +0000 (23:44 +0200)
commit025b863e6facb7b219b82ee6ee7a7916c2c3c47e
treeeed4ad0f5d5b1ddb90dda9d5a2dea56d817762cd
parent1382738266464389e287b0f6fefabca2d1483312
rust: modify Rust packaging to be usable as host-tool only

This commit modifies the host-rust virtual package to default to
host-rust-bin when no other selection has been made, as long as the
host supports rust. This allows host only tools to still use rust when
the target architecture does not support it.

Add target-specific variable which is used to differentiate host and
target arch requirements (BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS).

A target package shall depend on this variable where a host package will
use the previously defined BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS. The new
"target" version is selectable for the same set of architectures as
before, but now depends on the host variant.

Signed-off-by: Sam Voss <sam.voss@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/rust-bin/rust-bin.mk
package/rustc/Config.in.host
package/rustc/rustc.mk