1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

ref-manual: initial documentation for go and go-mod classes

This addresses [YOCTO #14582]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Opdenacker
2023-01-06 17:32:10 +01:00
committed by Richard Purdie
parent 383e97f896
commit ce7b98d363
2 changed files with 90 additions and 0 deletions
+23
View File
@@ -758,6 +758,29 @@ software from the GNOME stack. This class sets
mirrors as well as extending :term:`FILES` with the typical
GNOME installation paths.
.. _ref-classes-go:
``go``
======
The :ref:`ref-classes-go` class supports building Go programs. The behavior of
this class is controlled by the mandatory :term:`GO_IMPORT` variable, and
by the optional :term:`GO_INSTALL` and :term:`GO_INSTALL_FILTEROUT` ones.
To build a Go program with the Yocto Project, you can use the
:yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
recipe as an example.
.. _ref-classes-go-mod:
``go-mod``
==========
The :ref:`ref-classes-go-mod` class allows to use Go modules, and inherits the
:ref:`ref-classes-go` class.
See the associated :term:`GO_WORKDIR` variable.
.. _ref-classes-gobject-introspection:
``gobject-introspection``