Config.in 4.9 KB

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