Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # Config entries for internal toolchain backend
  2. if BR2_TOOLCHAIN_BUILDROOT
  3. config BR2_TOOLCHAIN_BUILDROOT_VENDOR
  4. string "custom toolchain vendor name"
  5. default "buildroot"
  6. help
  7. This option allows to customize the "vendor" part of the
  8. toolchain tuple, where the toolchain tuple has the form
  9. <arch>-<vendor>-<os>-<libc>. The default value, "buildroot",
  10. is fine for most cases, except in very specific situations
  11. where gcc might make different decisions based on the vendor
  12. part of the tuple. The value "unknown" is not allowed, as the
  13. cross-compiling toolchain might then be confused with the
  14. native toolchain when the target and host architecture are
  15. identical. The value can not be empty either.
  16. If you're not sure, just leave the default "buildroot" value.
  17. source "package/linux-headers/Config.in.host"
  18. choice
  19. prompt "C library"
  20. default BR2_TOOLCHAIN_UCLIBC
  21. default BR2_TOOLCHAIN_BUILDROOT_EGLIBC if BR2_mips64 || BR2_mips64el
  22. config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  23. bool "uClibc"
  24. select BR2_TOOLCHAIN_USES_UCLIBC
  25. depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \
  26. BR2_avr32 || BR2_bfin || BR2_i386 || BR2_m68k || \
  27. BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
  28. BR2_powerpc || BR2_sh || BR2_sparc || BR2_xtensa || \
  29. BR2_x86_64
  30. help
  31. This option selects uClibc as the C library for the
  32. cross-compilation toolchain.
  33. http://uclibc.org
  34. config BR2_TOOLCHAIN_BUILDROOT_EGLIBC
  35. bool "eglibc"
  36. depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
  37. BR2_i386 || BR2_mips || BR2_mipsel || \
  38. BR2_mips64 || BR2_mips64el || BR2_powerpc || \
  39. BR2_sh || BR2_sh64 || BR2_sparc || \
  40. BR2_x86_64 || BR2_microblaze || BR2_powerpc64
  41. depends on BR2_USE_MMU
  42. depends on !BR2_PREFER_STATIC_LIB
  43. select BR2_TOOLCHAIN_USES_GLIBC
  44. # our eglibc.mk enables RPC support
  45. select BR2_TOOLCHAIN_HAS_NATIVE_RPC
  46. help
  47. This option selects eglibc as the C library for the
  48. cross-compilation toolchain.
  49. http://eglibc.org
  50. config BR2_TOOLCHAIN_BUILDROOT_GLIBC
  51. bool "glibc"
  52. depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
  53. BR2_i386 || BR2_mips || BR2_mipsel || \
  54. BR2_mips64 || BR2_mips64el || BR2_powerpc || \
  55. BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \
  56. BR2_sh64 || BR2_sparc || BR2_x86_64 || \
  57. BR2_microblaze
  58. depends on BR2_USE_MMU
  59. depends on !BR2_PREFER_STATIC_LIB
  60. depends on !BR2_powerpc_SPE
  61. select BR2_TOOLCHAIN_USES_GLIBC
  62. # our glibc.mk enables RPC support
  63. select BR2_TOOLCHAIN_HAS_NATIVE_RPC
  64. help
  65. This option selects glibc as the C library for the
  66. cross-compilation toolchain.
  67. http://www.gnu.org/software/libc/
  68. comment "(e)glibc only available with shared lib support"
  69. depends on BR2_PREFER_STATIC_LIB
  70. config BR2_TOOLCHAIN_BUILDROOT_MUSL
  71. bool "musl (experimental)"
  72. depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_microblaze || \
  73. BR2_mips || BR2_mipsel || BR2_powerpc || BR2_x86_64
  74. depends on !BR2_powerpc_SPE # not supported, build breaks
  75. select BR2_TOOLCHAIN_USES_MUSL
  76. help
  77. This option selects musl as the C library for the
  78. cross-compilation toolchain.
  79. endchoice
  80. config BR2_TOOLCHAIN_BUILDROOT_LIBC
  81. string
  82. default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  83. # Both glibc and eglibc are handled by the package called
  84. # 'glibc'
  85. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
  86. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
  87. default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
  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/elf2flt/Config.in.host"
  93. endif