meta-golang
meta-golang copied to clipboard
Go language metadata layer for OpenEmbedded/Yocto Project builds
OpenEmbedded/Yocto layer for Go language support
PLEASE NOTE: Starting with OE-Core 'rocko' (Yocto Project 2.4), Go support is available directly in OE-Core, and meta-golang is no longer under active development.
Converting to OE-Core's Go support
-
Change
inherit golangtoinherit go. -
Set the
Svariable, usually to"${WORKDIR}/git". Thego.bbclassdoes not setSfor you. -
Set the
GO_IMPORTvariable to the import path of the Go package being built. In most cases, this is the same as what you setGO_SRCROOTwhen usinginherit golang. -
Source file/path references are now based off
${B}instead of${B}/src. If you used${GO_SRCROOT}with your meta-golang-based recipes, recplacing that withsrc/${GO_IMPORT}is usually sufficient. -
If you used multiple repositories in your
SRC_URIfor 'vendoring' in other packages, you will need to change thedestsuffix=parameter for the vendored packages from${GO_SRCROOT}togit/src/${GO_IMPORT}.