new file mode 100644
@@ -0,0 +1,22 @@
+SUMMARY = "This is a simple example recipe that cross-compiles a Go program."
+SECTION = "examples"
+HOMEPAGE = "https://golang.org/"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https"
+SRCREV = "d9923f6970e9ba7e0d23aa9448ead71ea57235ae"
+UPSTREAM_CHECK_COMMITS = "1"
+
+GO_IMPORT = "golang.org/x/example"
+GO_INSTALL = "${GO_IMPORT}/hello"
+
+export GO111MODULE="off"
+
+inherit go
+
+# This is just to make clear where this example is
+do_install:append() {
+ mv ${D}${bindir}/hello ${D}${bindir}/${BPN}
+}
This allows a quick smoke test for whether go toolchain produces working executables. Last release where go-helloworld recipe was identical on scarthgap and master is yocto-5.0.11. Afterwards license was fixed on scarthgap and no further updates were done. * fa45d6d5bec8fe503ff6b9166a3b4af31ea95369 go-helloworld: fix license This commit is missing on master and will be submitted there. Version copied here is from yocto-5.0.11 as a clean cherry-pick base. * https://git.openembedded.org/openembedded-core/tree/meta/recipes-extended/go-examples?h=yocto-5.0.11 Signed-off-by: Peter Marko <peter.marko@siemens.com> --- .../go-examples/go-helloworld_0.1.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes-extended/go-examples/go-helloworld_0.1.bb