blob: 98cd4d810335b037e9b58e22000ba63327cd64af [file] [log] [blame]
Patrick Williams8e7b46e2023-05-01 14:19:06 -05001SUMMARY = "This is a simple example recipe that cross-compiles a Go program."
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002SECTION = "examples"
3HOMEPAGE = "https://golang.org/"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007
Andrew Geissler595f6302022-01-24 19:11:47 +00008SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https"
Andrew Geissler220dafd2023-10-04 10:18:08 -05009SRCREV = "d9923f6970e9ba7e0d23aa9448ead71ea57235ae"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010UPSTREAM_CHECK_COMMITS = "1"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011
Andrew Geissler595f6302022-01-24 19:11:47 +000012GO_IMPORT = "golang.org/x/example"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013GO_INSTALL = "${GO_IMPORT}/hello"
Patrick Williams03907ee2022-05-01 06:28:52 -050014
Andrew Geissler95ac1b82021-03-31 14:34:31 -050015export GO111MODULE="off"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016
Andrew Geissler95ac1b82021-03-31 14:34:31 -050017inherit go
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018
19# This is just to make clear where this example is
Patrick Williams213cb262021-08-07 19:21:33 -050020do_install:append() {
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 mv ${D}${bindir}/hello ${D}${bindir}/${BPN}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022}