for cross-compilation.
endef
+PKG_GO_ZBOOTSTRAP_MODS:= \
+ s/defaultGO386 = `[^`]*`/defaultGO386 = `$(if $(GO_386),$(GO_386),387)`/; \
+ s/defaultGOARM = `[^`]*`/defaultGOARM = `$(if $(GO_ARM),$(GO_ARM),5)`/; \
+ s/defaultGOMIPS = `[^`]*`/defaultGOMIPS = `$(if $(GO_MIPS),$(GO_MIPS),hardfloat)`/; \
+ s/defaultGOMIPS64 = `[^`]*`/defaultGOMIPS64 = `$(if $(GO_MIPS64),$(GO_MIPS64),hardfloat)`/; \
+ s/defaultGOPPC64 = `[^`]*`/defaultGOPPC64 = `power8`/;
+
define Download/golang-bootstrap
FILE:=$(BOOTSTRAP_SOURCE)
URL:=$(BOOTSTRAP_SOURCE_URL)
PATH=$(HOST_GO_ROOT)/openwrt:$$$$PATH \
)
+ ifneq ($(PKG_GO_ZBOOTSTRAP_MODS),)
+ $(SED) '$(PKG_GO_ZBOOTSTRAP_MODS)' \
+ $(PKG_BUILD_DIR)/src/cmd/internal/objabi/zbootstrap.go
+ endif
+
@echo "Building target Go second stage"
( \