Config.in 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. # SH4a
  26. source "toolchain/toolchain-external/toolchain-external-codesourcery-sh/Config.in"
  27. # x86/x86_64 (use amd64 toolchain by default for AMD64)
  28. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in"
  29. source "toolchain/toolchain-external/toolchain-external-codesourcery-x86/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.
  33. source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
  34. endchoice
  35. choice
  36. prompt "Toolchain origin"
  37. # Keep compatibility with old defconfig files that are using
  38. # custom toolchains, and which are therefore assuming that
  39. # "preinstalled" in the default choice.
  40. default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
  41. config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
  42. bool "Toolchain to be downloaded and installed"
  43. help
  44. Select this option if you want Buildroot to download and install the
  45. toolchain. If you have selected a custom toolchain, specify the URL
  46. in BR2_TOOLCHAIN_EXTERNAL_URL.
  47. config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
  48. bool "Pre-installed toolchain"
  49. help
  50. Select this option if you want to use a pre-installed toolchain.
  51. Specify the path to this toolchain in BR2_TOOLCHAIN_EXTERNAL_PATH.
  52. endchoice
  53. config BR2_TOOLCHAIN_EXTERNAL_PATH
  54. string "Toolchain path"
  55. default "/path/to/toolchain/usr"
  56. depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
  57. help
  58. Path to where the external toolchain is installed.
  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. # SH4a
  98. source "toolchain/toolchain-external/toolchain-external-codesourcery-sh/Config.in.options"
  99. # x86/x86_64
  100. source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
  101. source "toolchain/toolchain-external/toolchain-external-codesourcery-x86/Config.in.options"
  102. # Custom toolchains
  103. source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
  104. config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
  105. bool "Copy gdb server to the Target"
  106. depends on BR2_TOOLCHAIN_EXTERNAL
  107. help
  108. Copy the gdbserver provided by the external toolchain to the
  109. target.
  110. endif # BR2_TOOLCHAIN_EXTERNAL