Config.in.host 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Target go packages should depend on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
  2. config BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
  3. bool
  4. default y
  5. depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS
  6. # See https://go.dev/doc/install/source#environment
  7. # See src/go/build/syslist.go for the list of supported architectures
  8. depends on (BR2_arm && BR2_TOOLCHAIN_SUPPORTS_PIE) || BR2_aarch64 \
  9. || BR2_i386 || BR2_x86_64 || BR2_powerpc64le \
  10. || BR2_mips64 || BR2_mips64el || BR2_riscv || BR2_s390x
  11. depends on !BR2_ARM_CPU_ARMV4
  12. # MIPS R6 support in Go has not yet been developed.
  13. depends on !BR2_MIPS_CPU_MIPS64R6
  14. # Go doesn't support Risc-v 32-bit.
  15. depends on !BR2_RISCV_32
  16. # Go requires the following Risc-v General (G) features:
  17. depends on !BR2_riscv || (BR2_RISCV_ISA_RVI && \
  18. BR2_RISCV_ISA_RVM && BR2_RISCV_ISA_RVA && \
  19. BR2_RISCV_ISA_RVF && BR2_RISCV_ISA_RVD)
  20. config BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
  21. bool
  22. default y
  23. depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
  24. # Go doesn't support CGO linking on MIPS64x platforms
  25. # See: https://github.com/karalabe/xgo/issues/46
  26. depends on !BR2_mips64 && !BR2_mips64el
  27. # go uses dlfcn.h + cgo for its plugin module
  28. depends on !BR2_STATIC_LIBS
  29. # cgo supports uses threads
  30. depends on BR2_TOOLCHAIN_HAS_THREADS
  31. # Host go packages should depend on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
  32. config BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
  33. bool
  34. default y
  35. depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS
  36. # Go packages should select BR2_PACKAGE_HOST_GO
  37. config BR2_PACKAGE_HOST_GO
  38. bool
  39. depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
  40. if BR2_PACKAGE_HOST_GO
  41. choice
  42. prompt "Go compiler variant"
  43. default BR2_PACKAGE_HOST_GO_SRC
  44. help
  45. Select a Go compiler variant.
  46. Default to 'host-go-src'.
  47. config BR2_PACKAGE_HOST_GO_SRC
  48. bool "host go (source)"
  49. help
  50. This package will build the go compiler for the host.
  51. endchoice
  52. endif
  53. config BR2_PACKAGE_PROVIDES_HOST_GO
  54. string
  55. # Default to host-go-src, as the only provider for now
  56. default "host-go-src"
  57. source "package/go/go-bootstrap-stage1/Config.in.host"
  58. source "package/go/go-bootstrap-stage2/Config.in.host"
  59. source "package/go/go-bootstrap-stage3/Config.in.host"