2
1

Config.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. # ARC
  13. source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
  14. # ARM (use Linaro toolchain by default)
  15. source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
  16. source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in"
  17. # ARM big-endian
  18. source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in"
  19. # MIPS (use codesourcery toolchain by default)
  20. source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in"
  21. source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in"
  22. source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in"
  23. # NIOSII
  24. source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in"
  25. # x86_64
  26. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in"
  27. # Kept last, so it remains the non-default choice, unless there isn't
  28. # any available toolchain profile for the currently selected
  29. # architecture.
  30. source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
  31. endchoice
  32. choice
  33. prompt "Toolchain origin"
  34. # Keep compatibility with old defconfig files that are using
  35. # custom toolchains, and which are therefore assuming that
  36. # "preinstalled" in the default choice.
  37. default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
  38. config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
  39. bool "Toolchain to be downloaded and installed"
  40. help
  41. Select this option if you want Buildroot to download and install the
  42. toolchain. If you have selected a custom toolchain, specify the URL
  43. in BR2_TOOLCHAIN_EXTERNAL_URL.
  44. config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
  45. bool "Pre-installed toolchain"
  46. help
  47. Select this option if you want to use a pre-installed toolchain.
  48. Specify the path to this toolchain in 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-linaro-aarch64/Config.in.options"
  83. source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
  84. # ARC
  85. source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
  86. # ARM
  87. source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
  88. source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
  89. # ARM big-endian
  90. source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options"
  91. # MIPS
  92. source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options"
  93. source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options"
  94. source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options"
  95. # NIOSII
  96. source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options"
  97. # x86_64
  98. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
  99. # Custom toolchains
  100. source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
  101. config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  102. bool "Copy gdb server to the Target"
  103. depends on BR2_TOOLCHAIN_EXTERNAL
  104. help
  105. Copy the gdbserver provided by the external toolchain to the
  106. target.
  107. endif # BR2_TOOLCHAIN_EXTERNAL