1*4882a593Smuzhiyun# Target go packages should depend on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS 2*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS 3*4882a593Smuzhiyun bool 4*4882a593Smuzhiyun default y 5*4882a593Smuzhiyun depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS 6*4882a593Smuzhiyun depends on (BR2_arm && BR2_TOOLCHAIN_SUPPORTS_PIE) || BR2_aarch64 \ 7*4882a593Smuzhiyun || BR2_i386 || BR2_x86_64 || BR2_powerpc64le \ 8*4882a593Smuzhiyun || BR2_mips64 || BR2_mips64el || BR2_s390x 9*4882a593Smuzhiyun depends on !BR2_ARM_CPU_ARMV4 10*4882a593Smuzhiyun # MIPS R6 support in Go has not yet been developed. 11*4882a593Smuzhiyun depends on !BR2_MIPS_CPU_MIPS64R6 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS 14*4882a593Smuzhiyun bool 15*4882a593Smuzhiyun default y 16*4882a593Smuzhiyun depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS 17*4882a593Smuzhiyun # Go doesn't support CGO linking on MIPS64x platforms 18*4882a593Smuzhiyun # See: https://github.com/karalabe/xgo/issues/46 19*4882a593Smuzhiyun depends on !BR2_mips64 && !BR2_mips64el 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun# Host go packages should depend on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS 22*4882a593Smuzhiyunconfig BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS 23*4882a593Smuzhiyun bool 24*4882a593Smuzhiyun default y 25*4882a593Smuzhiyun depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS 26