xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/go-examples/go-helloworld_0.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDESCRIPTION = "This is a simple example recipe that cross-compiles a Go program."
2*4882a593SmuzhiyunSECTION = "examples"
3*4882a593SmuzhiyunHOMEPAGE = "https://golang.org/"
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunLICENSE = "MIT"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https"
9*4882a593SmuzhiyunSRCREV = "787a929d5a0dfb8bbfcdd2c4a62e0fd89466113f"
10*4882a593SmuzhiyunUPSTREAM_CHECK_COMMITS = "1"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunGO_IMPORT = "golang.org/x/example"
13*4882a593SmuzhiyunGO_INSTALL = "${GO_IMPORT}/hello"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunexport GO111MODULE="off"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyuninherit go
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# This is just to make clear where this example is
20*4882a593Smuzhiyundo_install:append() {
21*4882a593Smuzhiyun    mv ${D}${bindir}/hello ${D}${bindir}/${BPN}
22*4882a593Smuzhiyun}
23