summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/classes.rst
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-01-06 17:32:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-25 15:12:48 +0000
commitce7b98d3637105121ff9a70ac7ab47310611205e (patch)
tree4a7ab316008b0521e36de741bb8a8e09a96e2db7 /documentation/ref-manual/classes.rst
parent383e97f8967ffc00352f1fb3c4381cae02eca8ba (diff)
downloadpoky-ce7b98d3637105121ff9a70ac7ab47310611205e.tar.gz
ref-manual: initial documentation for go and go-mod classes
This addresses [YOCTO #14582] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r--documentation/ref-manual/classes.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 7dba617db5..0cb507b500 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -758,6 +758,29 @@ software from the GNOME stack. This class sets
758mirrors as well as extending :term:`FILES` with the typical 758mirrors as well as extending :term:`FILES` with the typical
759GNOME installation paths. 759GNOME installation paths.
760 760
761.. _ref-classes-go:
762
763``go``
764======
765
766The :ref:`ref-classes-go` class supports building Go programs. The behavior of
767this class is controlled by the mandatory :term:`GO_IMPORT` variable, and
768by the optional :term:`GO_INSTALL` and :term:`GO_INSTALL_FILTEROUT` ones.
769
770To build a Go program with the Yocto Project, you can use the
771:yocto_git:`go-helloworld_0.1.bb </poky/tree/meta/recipes-extended/go-examples/go-helloworld_0.1.bb>`
772recipe as an example.
773
774.. _ref-classes-go-mod:
775
776``go-mod``
777==========
778
779The :ref:`ref-classes-go-mod` class allows to use Go modules, and inherits the
780:ref:`ref-classes-go` class.
781
782See the associated :term:`GO_WORKDIR` variable.
783
761.. _ref-classes-gobject-introspection: 784.. _ref-classes-gobject-introspection:
762 785
763``gobject-introspection`` 786``gobject-introspection``