Config.in 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # Config entries for internal toolchain backend
  2. if BR2_TOOLCHAIN_BUILDROOT
  3. comment "Toolchain Buildroot Options"
  4. config BR2_TOOLCHAIN_BUILDROOT_VENDOR
  5. string "custom toolchain vendor name"
  6. default "buildroot"
  7. help
  8. This option allows to customize the "vendor" part of the
  9. toolchain tuple, where the toolchain tuple has the form
  10. <arch>-<vendor>-<os>-<libc>. The default value, "buildroot",
  11. is fine for most cases, except in very specific situations
  12. where gcc might make different decisions based on the vendor
  13. part of the tuple. The value "unknown" is not allowed, as the
  14. cross-compiling toolchain might then be confused with the
  15. native toolchain when the target and host architecture are
  16. identical. The value can not be empty either.
  17. If you're not sure, just leave the default "buildroot" value.
  18. choice
  19. prompt "C library"
  20. default BR2_TOOLCHAIN_BUILDROOT_GLIBC
  21. config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  22. bool "uClibc-ng"
  23. depends on BR2_PACKAGE_UCLIBC_SUPPORTS
  24. select BR2_TOOLCHAIN_USES_UCLIBC
  25. help
  26. This option selects uClibc-ng as the C library for the
  27. cross-compilation toolchain.
  28. http://uclibc-ng.org
  29. config BR2_TOOLCHAIN_BUILDROOT_GLIBC
  30. bool "glibc"
  31. depends on BR2_PACKAGE_GLIBC_SUPPORTS
  32. select BR2_TOOLCHAIN_USES_GLIBC
  33. help
  34. This option selects glibc as the C library for the
  35. cross-compilation toolchain.
  36. http://www.gnu.org/software/libc/
  37. comment "glibc needs a toolchain w/ kernel headers >= 3.2"
  38. depends on BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
  39. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  40. comment "glibc on LoongArch64 needs a toolchain w/ headers >= 5.19"
  41. depends on BR2_loongarch64
  42. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
  43. # glibc >= 2.26 require kernel headers >= 3.10 on powerpc64le.
  44. comment "glibc on powerpc64le needs a toolchain w/ headers >= 3.10"
  45. depends on BR2_powerpc64le
  46. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  47. # Support for MIPS NAN2008 needs headers >= 4.5
  48. comment "glibc on MIPS w/ NAN2008 needs a toolchain w/ headers >= 4.5"
  49. depends on BR2_MIPS_NAN_2008
  50. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  51. comment "glibc on RISC-V 64-bit needs a toolchain w/ headers >= 5.0"
  52. depends on BR2_RISCV_64
  53. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  54. comment "glibc on RISC-V 32-bit needs a toolchain w/ headers >= 5.4"
  55. depends on BR2_RISCV_32
  56. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  57. comment "glibc on ARC needs a toolchain w/ headers >= 5.1"
  58. depends on BR2_arc
  59. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  60. comment "glibc on or1k needs a toolchain w/ headers >= 5.4"
  61. depends on BR2_or1k
  62. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  63. config BR2_TOOLCHAIN_BUILDROOT_MUSL
  64. bool "musl"
  65. depends on BR2_PACKAGE_MUSL_SUPPORTS
  66. select BR2_TOOLCHAIN_USES_MUSL
  67. help
  68. This option selects musl as the C library for the
  69. cross-compilation toolchain.
  70. https://www.musl-libc.org/
  71. config BR2_TOOLCHAIN_BUILDROOT_NONE
  72. bool "none"
  73. depends on !BR2_PACKAGE_UCLIBC_SUPPORTS && \
  74. !BR2_PACKAGE_GLIBC_SUPPORTS && \
  75. !BR2_PACKAGE_MUSL_SUPPORTS
  76. help
  77. This option is visible if no C library is available for the
  78. currently selected configuration. If you select this option,
  79. the build will refuse to start as Buildroot needs a C
  80. library to build a toolchain. Change your configuration
  81. settings to make sure one of the C libraries is selected.
  82. endchoice
  83. config BR2_TOOLCHAIN_BUILDROOT_LIBC
  84. string
  85. default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  86. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
  87. default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
  88. source "package/linux-headers/Config.in.host"
  89. source "package/linux-headers/Config.in"
  90. source "package/musl/Config.in"
  91. source "package/uclibc/Config.in"
  92. source "package/glibc/Config.in"
  93. source "package/binutils/Config.in.host"
  94. source "package/gcc/Config.in.host"
  95. source "package/gcc/Config.in"
  96. endif