ref-manual: document meson class and EXTRA_OEMESON variable
PATCH 1/1 ref-manual: document meson class and EXTRA_OEMESON variable
From: Michael Opdenacker <[email protected]>
--- documentation/ref-manual/classes.rst | 10 ++++++++++ documentation/ref-manual/variables.rst | 11 +++++++++++ 2 files changed, 21 insertions(+)
documentation/ref-manual/classes.rst +10 -0
@@ -1648,6 +1648,16 @@ messages for various BitBake severity levels (i.e. ``bbplain``, This class is enabled by default since it is inherited by the :ref:`ref-classes-base` class. +.. _ref-classes-meson: + +``meson`` +========= + +The :ref:`ref-classes-meson` class allows to create recipes that build software +using the `Meson <https://mesonbuild.com/>`__ build system. You can use +the :term:`EXTRA_OEMESON` variable to specify additional configuration options +to be passed using the ``meson`` command line. + .. _ref-classes-metadata_scm: ``metadata_scm``
documentation/ref-manual/variables.rst +11 -0
@@ -2528,6 +2528,17 @@ system and gives an overview of their function and contents. variable specifies additional configuration options you want to pass to the ``scons`` command line. + :term:`EXTRA_OEMESON` + Additional `Meson <https://mesonbuild.com/>`__ options. See the + :ref:`ref-classes-meson` class for additional information. + + In addition to standard Meson options, such options correspond + `Meson build options <https://mesonbuild.com/Build-options.html>`__ + defined in the ``meson_options.txt`` file in the sources to build. + Here is an example:: + + EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" + :term:`EXTRA_USERS_PARAMS` When inheriting the :ref:`ref-classes-extrausers` class, this variable provides image level user and group operations.
Signature · 1 line
2.37.2
Quoted 41 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Michael Opdenacker via lists.yoctoproject.org
Sent: den 16 februari 2023 15:08
To: [email protected]
Cc: Michael Opdenacker <[email protected]>
Subject: [docs] [PATCH] ref-manual: document meson class andEXTRA_OEMESONvariableFrom: Michael Opdenacker <[email protected]>
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/ref-manual/classes.rst | 10 ++++++++++ documentation/ref-manual/variables.rst | 11 +++++++++++ 2 files changed, 21 insertions(+)documentation/ref-manual/classes.rst +10
-0@@ -1648,6 +1648,16 @@ messages for various BitBake severity levels (i.e. ``bbplain``, This class is enabled by default since it is inherited by the :ref:`ref-classes-base` class. +.. _ref-classes-meson: + +``meson`` +========= + +The :ref:`ref-classes-meson` class allows to create recipes that build software +using the `Meson <https://mesonbuild.com/>`__ build system. You can use +the :term:`EXTRA_OEMESON` variable to specify additional configuration options +to be passed using the ``meson`` command line. + .. _ref-classes-metadata_scm: ``metadata_scm``documentation/ref-manual/variables.rst +0
-0
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 2535
Quoted 8 lines
documentation/ref-manual/variables.rst +5
-0@@ -2528,6 +2528,17 @@ system and gives an overview of their function and contents. variable specifies additional configuration options you want to pass to the ``scons`` command line. + :term:`EXTRA_OEMESON` + Additional `Meson <https://mesonbuild.com/>`__ options. See the + :ref:`ref-classes-meson` class for additional information. + + In addition to standard Meson options, such options correspond
Change "correspond" to "correspond to".
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 2541
Quoted 6 lines
documentation/ref-manual/variables.rst +6
-0+ `Meson build options <https://mesonbuild.com/Build-options.html>`__ + defined in the ``meson_options.txt`` file in the sources to build. + Here is an example:: + + EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" +
You might also want to add a definition of the MESON_BUILDTYPE variable, which defaults to debug or plain depending on if DEBUG_BUILD is set or not, but can be set by the recipe.
Quoted 5 lines
documentation/ref-manual/variables.rst +0
-1:term:`EXTRA_USERS_PARAMS` When inheriting the :ref:`ref-classes-extrausers` class, this variable provides image level user and group operations. --2.37.2
//Peter
Hi Peter
Thanks for the review!
Quoted 44 lines · Peter Kjellerstedt
Quoted 44 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Michael Opdenacker via lists.yoctoproject.org
Sent: den 16 februari 2023 15:08
To: [email protected]
Cc: Michael Opdenacker <[email protected]>
Subject: [docs] [PATCH] ref-manual: document meson class andEXTRA_OEMESONvariableFrom: Michael Opdenacker <[email protected]>
Signed-off-by Michael Opdenacker <[email protected]>--- documentation/ref-manual/classes.rst | 10 ++++++++++ documentation/ref-manual/variables.rst | 11 +++++++++++ 2 files changed, 21 insertions(+)documentation/ref-manual/classes.rst +10
-0@@ -1648,6 +1648,16 @@ messages for various BitBake severity levels (i.e. ``bbplain``, This class is enabled by default since it is inherited by the :ref:`ref-classes-base` class. +.. _ref-classes-meson: + +``meson`` +========= + +The :ref:`ref-classes-meson` class allows to create recipes that build software +using the `Meson <https://mesonbuild.com/>`__ build system. You can use +the :term:`EXTRA_OEMESON` variable to specify additional configuration options +to be passed using the ``meson`` command line. + .. _ref-classes-metadata_scm: ``metadata_scm``documentation/ref-manual/variables.rst +0
-0@@ -2528,6 +2528,17 @@ system and gives an overview of their function and contents. variable specifies additional configuration options you want to pass to the ``scons`` command line.
Quoted 6 lines
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 2535
Quoted 5 lines
documentation/ref-manual/variables.rst +5
-0+ :term:`EXTRA_OEMESON` + Additional `Meson <https://mesonbuild.com/>`__ options. See the + :ref:`ref-classes-meson` class for additional information. + + In addition to standard Meson options, such options correspondChange "correspond" to "correspond to".
Oops, fixed.
Quoted 10 lines
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 2541
Quoted 7 lines
documentation/ref-manual/variables.rst +6
-0+ `Meson build options <https://mesonbuild.com/Build-options.html>`__ + defined in the ``meson_options.txt`` file in the sources to build. + Here is an example:: + + EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" +You might also want to add a definition of the
MESON_BUILDTYPEvariable, which defaults todebugorplaindepending on ifDEBUG_BUILDis set or not, but can be set by the recipe.
Oh yes, that's necessary. You don't want to use EXTRA_OEMESON to pass "--buildtype" options, otherwise two different "--buildtype" settings may be passed at the same time.
I'm preparing a V2.
Thanks again
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com