summaryrefslogtreecommitdiff
path: root/package/go-bootstrap
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-20 23:08:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-20 23:08:44 +0100
commitee4fdb76d5fc14ce338d67314c58a757235a6fd0 (patch)
treec42cb92b942bfbca4fc0324e6142dc123a1fe95c /package/go-bootstrap
parent6eac6fcd18e2d6adc52ad323ffd485fc3f37d6dc (diff)
add new package hugo, this requires google go. logic mostly from buildroot
Diffstat (limited to 'package/go-bootstrap')
-rw-r--r--package/go-bootstrap/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/package/go-bootstrap/Makefile b/package/go-bootstrap/Makefile
new file mode 100644
index 000000000..cfd07f599
--- /dev/null
+++ b/package/go-bootstrap/Makefile
@@ -0,0 +1,44 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= go-bootstrap
+PKG_VERSION:= 1.4.3
+PKG_RELEASE:= 1
+PKG_HASH:= 9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959
+PKG_DESCR:= go bootstrap compiler
+PKG_SECTION:= dev/tools
+PKG_URL:= http://www.golang.org/
+PKG_SITES:= https://storage.googleapis.com/golang/
+
+PKG_CFLINE_GO_BOOTSTRAP:= depends on ADK_HOST_ONLY
+
+DISTFILES:= go$(PKG_VERSION).src.tar.gz
+WRKDIST= ${WRKDIR}/go/src
+
+include $(ADK_TOPDIR)/mk/host.mk
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,GO_BOOTSTRAP,go-bootstrap,$(PKG_VERSION)-${PKG_RELEASE}))
+
+HOST_STYLE:= manual
+HOST_MAKE_ENV+= GOOS=linux \
+ GOROOT="$(WRKBUILD)" \
+ GOBIN="$(WRKBUILD)/bin" \
+ GOROOT_FINAL="$(STAGING_HOST_DIR)/usr/lib/go-bootstrap" \
+ CGO_ENABLED=0
+
+host-build:
+ (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ./make.bash)
+
+go-bootstrap-hostinstall:
+ $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
+ $(CP) $(WRKBUILD)/../lib $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
+ $(CP) $(WRKBUILD)/../pkg $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
+ $(CP) $(WRKBUILD)/../src $(STAGING_HOST_DIR)/usr/lib/go-bootstrap
+ $(INSTALL_BIN) $(WRKBUILD)/bin/go $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
+ $(INSTALL_BIN) $(WRKBUILD)/bin/gofmt $(STAGING_HOST_DIR)/usr/lib/go-bootstrap/bin
+
+include ${ADK_TOPDIR}/mk/host-bottom.mk
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk