summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2025-06-06 17:01:47 +0200
committerSteve Sakoman <steve@sakoman.com>2025-06-20 08:06:30 -0700
commit7e68f78b6ea8aee3c44ed164248f93580469c798 (patch)
treee5c1f59cf52ec42a5c89f0a841a367c4ccf2282e
parentd76598e8aa8bbf6f9148a1b6f71f74d837a671be (diff)
downloadpoky-7e68f78b6ea8aee3c44ed164248f93580469c798.tar.gz
ref-manual: classes: reword to clarify that native/nativesdk options are exclusive
We explain how to create a native (nativesdk) recipe in two different ways via a bullet list but reading quickly the instructions may mislead one into doing both options whereas they are incompatible. This rewords both the nativesdk and native sections so that the second bullet point starts with an Or and explicit that this applies to target recipes. (From yocto-docs rev: c2e814ba75524225390ecad0d3615e48f866374a) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit 6d0d338a5f2686ddeee5eed7b6e05f3db800d33a) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--documentation/ref-manual/classes.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 567a4a8227..de6affdea0 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -1855,7 +1855,8 @@ a couple different ways:
1855 Not using this naming convention can lead to subtle problems 1855 Not using this naming convention can lead to subtle problems
1856 caused by existing code that depends on that naming convention. 1856 caused by existing code that depends on that naming convention.
1857 1857
1858- Create or modify a target recipe that contains the following:: 1858- Or, create a :ref:`ref-classes-native` variant of any target recipe (e.g.
1859 ``myrecipe.bb``) by adding the following to the recipe::
1859 1860
1860 BBCLASSEXTEND = "native" 1861 BBCLASSEXTEND = "native"
1861 1862
@@ -1886,7 +1887,8 @@ couple different ways:
1886 inherit statement in the recipe after all other inherit statements so 1887 inherit statement in the recipe after all other inherit statements so
1887 that the :ref:`ref-classes-nativesdk` class is inherited last. 1888 that the :ref:`ref-classes-nativesdk` class is inherited last.
1888 1889
1889- Create a :ref:`ref-classes-nativesdk` variant of any recipe by adding the following:: 1890- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
1891 ``myrecipe.bb``) by adding the following to the recipe::
1890 1892
1891 BBCLASSEXTEND = "nativesdk" 1893 BBCLASSEXTEND = "nativesdk"
1892 1894