<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 5:39 PM, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2k2" class="a3s aXjCH m1584bad6ff3633b4">diff --git a/meta/recipes-extended/go-<wbr>examples/go-examples.inc b/meta/recipes-extended/go-<wbr>examples/go-examples.inc<br>
new file mode 100644<br>
index 0000000..c632681<br>
--- /dev/null<br>
+++ b/meta/recipes-extended/go-<wbr>examples/go-examples.inc<br>
@@ -0,0 +1,10 @@<br>
+DESCRIPTION = "This is a simple example recipe that cross-compiles a Go program."<br>
+SECTION = "examples"<br>
+HOMEPAGE = "<a href="https://golang.org/" rel="noreferrer" target="_blank">https://golang.org/</a>"<br>
+<br>
+LICENSE = "MIT"<br>
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/<wbr>MIT;md5=<wbr>0835ade698e0bcf8506ecda2f7b4f3<wbr>02"<br>
+<br>
+S = "${WORKDIR}"<br>
+<br>
+inherit go<br>
diff --git a/meta/recipes-extended/go-<wbr>examples/<a href="http://go-helloworld_0.1.bb" rel="noreferrer" target="_blank">go-helloworld_0.1.bb</a> b/meta/recipes-extended/go-<wbr>examples/<a href="http://go-helloworld_0.1.bb" rel="noreferrer" target="_blank">go-helloworld_0.1.bb</a><br>
new file mode 100644<br>
index 0000000..af9d3b7<br>
--- /dev/null<br>
+++ b/meta/recipes-extended/go-<wbr>examples/<a href="http://go-helloworld_0.1.bb" rel="noreferrer" target="_blank">go-helloworld_0.1.bb</a><br>
@@ -0,0 +1,15 @@<br>
+require go-examples.inc<br>
+<br>
+<br>
+SRC_URI += " \<br>
+ file://helloworld.go \<br>
+"<br>
+<br>
+do_compile() {<br>
+ go build helloworld.go<br>
+}</div></blockquote></div><br>Under what circumstances would one use the go_do_compile from go.bbclass vs this?<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>