2
1

Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. # glibc >= 2.26 require kernel headers >= 3.10 on powerpc64le.
  41. comment "glibc on powerpc64le needs a toolchain w/ headers >= 3.10"
  42. depends on BR2_powerpc64le
  43. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  44. # Support for MIPS NAN2008 needs headers >= 4.5
  45. comment "glibc on MIPS w/ NAN2008 needs a toolchain w/ headers >= 4.5"
  46. depends on BR2_MIPS_NAN_2008
  47. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  48. comment "glibc on RISC-V 64-bit needs a toolchain w/ headers >= 5.0"
  49. depends on BR2_RISCV_64
  50. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  51. comment "glibc on RISC-V 32-bit needs a toolchain w/ headers >= 5.4"
  52. depends on BR2_RISCV_32
  53. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  54. comment "glibc on ARC needs a toolchain w/ headers >= 5.1"
  55. depends on BR2_arc
  56. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  57. comment "glibc on or1k needs a toolchain w/ headers >= 5.4"
  58. depends on BR2_or1k
  59. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  60. config BR2_TOOLCHAIN_BUILDROOT_MUSL
  61. bool "musl"
  62. depends on BR2_PACKAGE_MUSL_SUPPORTS
  63. select BR2_TOOLCHAIN_USES_MUSL
  64. help
  65. This option selects musl as the C library for the
  66. cross-compilation toolchain.
  67. https://www.musl-libc.org/
  68. config BR2_TOOLCHAIN_BUILDROOT_NONE
  69. bool "none"
  70. depends on !BR2_PACKAGE_UCLIBC_SUPPORTS && \
  71. !BR2_PACKAGE_GLIBC_SUPPORTS && \
  72. !BR2_PACKAGE_MUSL_SUPPORTS
  73. help
  74. This option is visible if no C library is available for the
  75. currently selected configuration. If you select this option,
  76. the build will refuse to start as Buildroot needs a C
  77. library to build a toolchain. Change your configuration
  78. settings to make sure one of the C libraries is selected.
  79. endchoice
  80. config BR2_TOOLCHAIN_BUILDROOT_LIBC
  81. string
  82. default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  83. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
  84. default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
  85. source "package/linux-headers/Config.in.host"
  86. source "package/linux-headers/Config.in"
  87. source "package/musl/Config.in"
  88. source "package/uclibc/Config.in"
  89. source "package/glibc/Config.in"
  90. source "package/binutils/Config.in.host"
  91. source "package/gcc/Config.in.host"
  92. source "package/gcc/Config.in"
  93. endif