Config.in 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_UCLIBC
  21. default BR2_TOOLCHAIN_BUILDROOT_GLIBC if BR2_powerpc64
  22. config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  23. bool "uClibc-ng"
  24. depends on BR2_PACKAGE_UCLIBC_SUPPORTS
  25. select BR2_TOOLCHAIN_USES_UCLIBC
  26. help
  27. This option selects uClibc-ng as the C library for the
  28. cross-compilation toolchain.
  29. http://uclibc-ng.org
  30. config BR2_TOOLCHAIN_BUILDROOT_GLIBC
  31. bool "glibc"
  32. depends on BR2_PACKAGE_GLIBC_SUPPORTS
  33. select BR2_TOOLCHAIN_USES_GLIBC
  34. help
  35. This option selects glibc as the C library for the
  36. cross-compilation toolchain.
  37. http://www.gnu.org/software/libc/
  38. comment "glibc needs a toolchain w/ kernel headers >= 3.2"
  39. depends on BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
  40. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  41. # glibc >= 2.26 require kernel headers >= 3.10 on powerpc64le.
  42. comment "glibc on powerpc64le needs a toolchain w/ headers >= 3.10"
  43. depends on BR2_powerpc64le
  44. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  45. # Support for MIPS NAN2008 needs headers >= 4.5
  46. comment "glibc on MIPS w/ NAN2008 needs a toolchain w/ headers >= 4.5"
  47. depends on BR2_MIPS_NAN_2008
  48. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  49. comment "glibc on RISC-V 64-bit needs a toolchain w/ headers >= 5.0"
  50. depends on BR2_RISCV_64
  51. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  52. comment "glibc on ARC needs a toolchain w/ headers >= 5.1"
  53. depends on BR2_arc
  54. depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  55. config BR2_TOOLCHAIN_BUILDROOT_MUSL
  56. bool "musl"
  57. depends on BR2_PACKAGE_MUSL_SUPPORTS
  58. select BR2_TOOLCHAIN_USES_MUSL
  59. help
  60. This option selects musl as the C library for the
  61. cross-compilation toolchain.
  62. https://www.musl-libc.org/
  63. endchoice
  64. config BR2_TOOLCHAIN_BUILDROOT_LIBC
  65. string
  66. default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  67. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
  68. default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
  69. source "package/linux-headers/Config.in.host"
  70. source "package/linux-headers/Config.in"
  71. source "package/musl/Config.in"
  72. source "package/uclibc/Config.in"
  73. source "package/glibc/Config.in"
  74. source "package/binutils/Config.in.host"
  75. source "package/gcc/Config.in.host"
  76. endif