Config.in 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. if BR2_TOOLCHAIN_EXTERNAL
  2. comment "Toolchain External Options"
  3. choice
  4. prompt "Toolchain"
  5. comment "glibc toolchains only available with shared lib support"
  6. depends on BR2_STATIC_LIBS
  7. # Kept toolchains sorted by architecture in order to use some toolchain
  8. # as default choice
  9. # Aarch64 (use Linaro toolchain by default)
  10. source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in"
  11. source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in"
  12. # Aarch64 big-endian
  13. source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in"
  14. # ARC
  15. source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
  16. # ARM (use Linaro toolchain by default)
  17. source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
  18. source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in"
  19. # ARM big-endian
  20. source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in"
  21. # MIPS (use codesourcery toolchain by default)
  22. source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in"
  23. source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in"
  24. source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in"
  25. # NIOSII
  26. source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in"
  27. # x86_64
  28. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in"
  29. # Kept last, so it remains the non-default choice, unless there isn't
  30. # any available toolchain profile for the currently selected
  31. # architecture.
  32. source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
  33. endchoice
  34. choice
  35. prompt "Toolchain origin"
  36. # Keep compatibility with old defconfig files that are using
  37. # custom toolchains, and which are therefore assuming that
  38. # "preinstalled" in the default choice.
  39. default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
  40. config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
  41. bool "Toolchain to be downloaded and installed"
  42. help
  43. Select this option if you want Buildroot to download and
  44. install the toolchain. If you have selected a custom
  45. toolchain, specify the URL in BR2_TOOLCHAIN_EXTERNAL_URL.
  46. config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
  47. bool "Pre-installed toolchain"
  48. help
  49. Select this option if you want to use a pre-installed
  50. toolchain. Specify the path to this toolchain in
  51. BR2_TOOLCHAIN_EXTERNAL_PATH.
  52. endchoice
  53. config BR2_TOOLCHAIN_EXTERNAL_PATH
  54. string "Toolchain path"
  55. default ""
  56. depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
  57. help
  58. Path to where the external toolchain is installed. The
  59. compiler itself is expected to be in the "bin" subdirectory
  60. of this path.
  61. If empty, the compiler will be searched in $PATH.
  62. config BR2_TOOLCHAIN_EXTERNAL_GLIBC
  63. bool
  64. select BR2_TOOLCHAIN_USES_GLIBC
  65. config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
  66. bool
  67. select BR2_TOOLCHAIN_USES_UCLIBC
  68. config BR2_TOOLCHAIN_EXTERNAL_MUSL
  69. bool
  70. select BR2_TOOLCHAIN_USES_MUSL
  71. # Compatibility headers: cdefs.h, queue.h
  72. select BR2_PACKAGE_MUSL_COMPAT_HEADERS
  73. # Make sure the virtual-package infra checks the provider
  74. config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL
  75. bool
  76. default y
  77. config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
  78. string
  79. config BR2_TOOLCHAIN_EXTERNAL_PREFIX
  80. string
  81. # Kept toolchains sorted as in the choice above
  82. # The toolchain Config.in.options must define
  83. # BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
  84. # Aarch64
  85. source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options"
  86. source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
  87. # Aarch64 big-endian
  88. source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in.options"
  89. # ARC
  90. source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
  91. # ARM
  92. source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
  93. source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
  94. # ARM big-endian
  95. source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options"
  96. # MIPS
  97. source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options"
  98. source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options"
  99. source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options"
  100. # NIOSII
  101. source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options"
  102. # x86_64
  103. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
  104. # Custom toolchains
  105. source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
  106. config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  107. bool "Copy gdb server to the Target"
  108. depends on BR2_TOOLCHAIN_EXTERNAL
  109. help
  110. Copy the gdbserver provided by the external toolchain to the
  111. target.
  112. endif # BR2_TOOLCHAIN_EXTERNAL