arc: use the release for binutils/gcc
[openadk.git] / package / go-bootstrap / Makefile
blobcfd07f59935fa34e56cb46331c2d60643c37c75f
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= go-bootstrap
7 PKG_VERSION:= 1.4.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= 9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959
10 PKG_DESCR:= go bootstrap compiler
11 PKG_SECTION:= dev/tools
12 PKG_URL:= http://www.golang.org/
13 PKG_SITES:= https://storage.googleapis.com/golang/
15 PKG_CFLINE_GO_BOOTSTRAP:= depends on ADK_HOST_ONLY
17 DISTFILES:= go$(PKG_VERSION).src.tar.gz
18 WRKDIST= ${WRKDIR}/go/src
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,GO_BOOTSTRAP,go-bootstrap,$(PKG_VERSION)-${PKG_RELEASE}))
25 HOST_STYLE:= manual
26 HOST_MAKE_ENV+= GOOS=linux \
27 GOROOT="$(WRKBUILD)" \
28 GOBIN="$(WRKBUILD)/bin" \
29 GOROOT_FINAL="$(STAGING_HOST_DIR)/usr/lib/go-bootstrap" \
30 CGO_ENABLED=0
32 host-build:
33 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ./make.bash)
35 go-bootstrap-hostinstall:
36 $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
37 $(CP) $(WRKBUILD)/../lib $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
38 $(CP) $(WRKBUILD)/../pkg $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
39 $(CP) $(WRKBUILD)/../src $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
40 $(INSTALL_BIN) $(WRKBUILD)/bin/go $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
41 $(INSTALL_BIN) $(WRKBUILD)/bin/gofmt $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
43 include ${ADK_TOPDIR}/mk/host-bottom.mk
44 include ${ADK_TOPDIR}/mk/pkg-bottom.mk