golang: add option to skip building bootstrap
authorGeorge Sapkin <redacted>
Mon, 2 Feb 2026 01:11:01 +0000 (03:11 +0200)
committerGeorge Sapkin <redacted>
Wed, 4 Feb 2026 06:56:32 +0000 (08:56 +0200)
commit9d8ac9df17a7b7047919cffb4a0742d547dfe91d
tree73247d942a95f3421303b58c303994ed7a1a9072
parente30561dd113eba6d3bc7ad6d767a28f31df19001
golang: add option to skip building bootstrap

Introduce a new configuration option - GOLANG_BUILD_BOOTSTRAP - that
defaults to enabled:

- When enabled, build the local bootstrap instead of using an external
  one for host Go. If GOLANG_EXTERNAL_BOOTSTRAP_ROOT is set, skip the
  initial 1.4 step.

- When disabled, let Go auto-detect the toolchain or use the toolchain
  specified in GOLANG_EXTERNAL_BOOTSTRAP_ROOT to skip building the
  bootstrap and build host Go using that toolchain directly. Configured
  toolchain must be compatible with the current version of Go.

HOST_BUILD_DEPENDS cannot be conditional, so some Makefile juggling is
needed.

Put menu config under bootstrap only.

Remove unnecessary package-related flags from host-only bootstrap.

Signed-off-by: George Sapkin <redacted>
lang/golang/Config.in [deleted file]
lang/golang/golang-bootstrap/Config.in [new file with mode: 0644]
lang/golang/golang-bootstrap/Makefile
lang/golang/golang-version.mk
git clone https://git.99rst.org/PROJECT