Config.in 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_GLIBC if BR2_aarch64 || BR2_aarch64_be \
  22. || BR2_powerpc64
  23. config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  24. bool "uClibc-ng"
  25. select BR2_TOOLCHAIN_USES_UCLIBC
  26. depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \
  27. BR2_bfin || BR2_i386 || BR2_m68k || BR2_microblaze || \
  28. BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
  29. BR2_powerpc || BR2_sh2a || BR2_sh4 || BR2_sh4eb || \
  30. BR2_sparc || BR2_xtensa || BR2_x86_64
  31. # Unsupported for MIPS R6
  32. depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
  33. help
  34. This option selects uClibc-ng as the C library for the
  35. cross-compilation toolchain.
  36. http://uclibc-ng.org
  37. config BR2_TOOLCHAIN_BUILDROOT_GLIBC
  38. bool "glibc"
  39. depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
  40. BR2_aarch64_be || BR2_i386 || BR2_mips || \
  41. BR2_mipsel || BR2_mips64 || BR2_mips64el|| \
  42. BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
  43. BR2_sh || BR2_sparc64 || BR2_x86_64 || \
  44. BR2_microblaze || BR2_nios2
  45. depends on BR2_USE_MMU
  46. depends on !BR2_STATIC_LIBS
  47. depends on !BR2_powerpc_SPE
  48. select BR2_TOOLCHAIN_USES_GLIBC
  49. # our glibc.mk enables RPC support
  50. select BR2_TOOLCHAIN_HAS_NATIVE_RPC
  51. help
  52. This option selects glibc as the C library for the
  53. cross-compilation toolchain.
  54. http://www.gnu.org/software/libc/
  55. comment "glibc only available with shared lib support"
  56. depends on BR2_USE_MMU
  57. depends on BR2_STATIC_LIBS
  58. config BR2_TOOLCHAIN_BUILDROOT_MUSL
  59. bool "musl"
  60. depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
  61. BR2_microblaze || BR2_mips || BR2_mipsel || BR2_mips64 || \
  62. BR2_mips64el || BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
  63. BR2_sh || BR2_x86_64
  64. depends on !BR2_powerpc_SPE # not supported, build breaks
  65. # sh2 nommu is supported by musl, but we don't have support
  66. # for it in Buildroot.
  67. depends on BR2_USE_MMU
  68. select BR2_TOOLCHAIN_USES_MUSL
  69. help
  70. This option selects musl as the C library for the
  71. cross-compilation toolchain.
  72. endchoice
  73. config BR2_TOOLCHAIN_BUILDROOT_LIBC
  74. string
  75. default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
  76. default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
  77. default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
  78. source "package/linux-headers/Config.in"
  79. source "package/musl/Config.in"
  80. source "package/uclibc/Config.in"
  81. source "package/glibc/Config.in"
  82. source "package/binutils/Config.in.host"
  83. source "package/gcc/Config.in.host"
  84. source "package/elf2flt/Config.in.host"
  85. endif