Config.in.host 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # All host rust packages should depend on this option
  2. config BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  3. bool
  4. default y if BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
  5. # All target rust packages should depend on this option
  6. config BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
  7. bool
  8. # The pre-built Rust standard library is only available for the
  9. # following architectures/ABIs, and is built against glibc.
  10. default y if BR2_i386
  11. default y if BR2_x86_64
  12. default y if BR2_aarch64
  13. default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 \
  14. && !(BR2_ARM_CPU_ARMV7A && BR2_ARM_EABI)
  15. default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
  16. default y if (BR2_mips || BR2_mipsel) && !BR2_MIPS_CPU_MIPS32R6
  17. default y if (BR2_mips64 || BR2_mips64el) && !BR2_MIPS_CPU_MIPS64R6 \
  18. && BR2_MIPS_NABI64
  19. depends on BR2_TOOLCHAIN_USES_GLIBC
  20. depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  21. config BR2_PACKAGE_HOST_RUSTC_ARCH
  22. string
  23. default "armv7" if BR2_ARM_CPU_ARMV7A
  24. default BR2_ARCH if !BR2_ARM_CPU_ARMV7A
  25. config BR2_PACKAGE_HOST_RUSTC_ABI
  26. string
  27. default "eabi" if BR2_ARM_EABI
  28. default "eabihf" if BR2_ARM_EABIHF
  29. default "abi64" if BR2_MIPS_NABI64
  30. config BR2_PACKAGE_HOST_RUSTC
  31. bool "host rustc"
  32. depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  33. help
  34. Compiler for the Rust language
  35. http://www.rust-lang.org
  36. if BR2_PACKAGE_HOST_RUSTC
  37. choice
  38. prompt "Rust compiler variant"
  39. default BR2_PACKAGE_HOST_RUST_BIN
  40. help
  41. Select a Rust compiler
  42. config BR2_PACKAGE_HOST_RUST
  43. bool "host rust"
  44. # triggers ICE on trunc_int_for_mode, at explow.c:56
  45. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 || !BR2_aarch64
  46. help
  47. This package will build the compiler for the host as well as
  48. two flavors of the standard library: one for the host, another
  49. for the target. Both are installed in the host directory.
  50. comment "host-rust needs a toolchain w/ gcc >= 5"
  51. depends on BR2_aarch64
  52. depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_5
  53. config BR2_PACKAGE_HOST_RUST_BIN
  54. bool "host rust (pre-built)"
  55. help
  56. This package will install pre-built versions of the compiler
  57. for the host and the Rust standard library for the target.
  58. endchoice
  59. endif
  60. config BR2_PACKAGE_PROVIDES_HOST_RUSTC
  61. string
  62. default "host-rust" if BR2_PACKAGE_HOST_RUST
  63. # Default to host-rust-bin as long as host arch supports it
  64. default "host-rust-bin" if !BR2_PACKAGE_HOST_RUST
  65. depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS