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 golang
toinherit go
. -
Set the
S
variable, usually to"${WORKDIR}/git"
. Thego.bbclass
does not setS
for you. -
Set the
GO_IMPORT
variable to the import path of the Go package being built. In most cases, this is the same as what you setGO_SRCROOT
when 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_URI
for 'vendoring' in other packages, you will need to change thedestsuffix=
parameter for the vendored packages from${GO_SRCROOT}
togit/src/${GO_IMPORT}
.