Config.in 4.7 KB

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