Config.in 5.6 KB

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