summaryrefslogtreecommitdiffstats
path: root/package/rustc
diff options
context:
space:
mode:
Diffstat (limited to 'package/rustc')
-rw-r--r--package/rustc/Config.in.host29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
index a49f635d65..66c50c4579 100644
--- a/package/rustc/Config.in.host
+++ b/package/rustc/Config.in.host
@@ -24,8 +24,37 @@ config BR2_PACKAGE_HOST_RUSTC_ABI
default "eabihf" if BR2_ARM_EABIHF
default "abi64" if BR2_MIPS_NABI64
+config BR2_PACKAGE_HOST_RUSTC
+ bool "host rustc"
+ depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
+ help
+ Compiler for the Rust language
+
+ http://www.rust-lang.org
+
+if BR2_PACKAGE_HOST_RUSTC
+
+choice
+ prompt "Rust compiler variant"
+ default BR2_PACKAGE_HOST_RUST_BIN
+ help
+ Select a Rust compiler
+
+config BR2_PACKAGE_HOST_RUST_BIN
+ bool "host rust (pre-built)"
+ select BR2_PACKAGE_HAS_HOST_RUSTC
+ help
+ This package will install pre-built versions of the compiler
+ for the host and the Rust standard library for the target.
+
+endchoice
+
config BR2_PACKAGE_HAS_HOST_RUSTC
bool
config BR2_PACKAGE_PROVIDES_HOST_RUSTC
string
+ default "host-rust-bin" if BR2_PACKAGE_HOST_RUST_BIN
+
+endif
+
OpenPOWER on IntegriCloud