summaryrefslogtreecommitdiffstats
path: root/documentation
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 09:21:27 -0700
commit46389a33461bf8d49538b2aa107faf31154704d0 (patch)
tree05ae6be2838bff76b14a4e98f5fc3265443bbe27 /documentation
parent2bfbd8747b968ffa82f4495e3de96d24bf3e63f3 (diff)
downloadpoky-46389a33461bf8d49538b2aa107faf31154704d0.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: 69ce7f06d3a736c3d8c7a1fffbdee16d14e2dcdf) 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>
Diffstat (limited to 'documentation')
-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 5187033f77..2f6d337b75 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2050,7 +2050,8 @@ a couple different ways:
2050 Not using this naming convention can lead to subtle problems 2050 Not using this naming convention can lead to subtle problems
2051 caused by existing code that depends on that naming convention. 2051 caused by existing code that depends on that naming convention.
2052 2052
2053- Create or modify a target recipe that contains the following:: 2053- Or, create a :ref:`ref-classes-native` variant of any target recipe (e.g.
2054 ``myrecipe.bb``) by adding the following to the recipe::
2054 2055
2055 BBCLASSEXTEND = "native" 2056 BBCLASSEXTEND = "native"
2056 2057
@@ -2081,7 +2082,8 @@ couple different ways:
2081 inherit statement in the recipe after all other inherit statements so 2082 inherit statement in the recipe after all other inherit statements so
2082 that the :ref:`ref-classes-nativesdk` class is inherited last. 2083 that the :ref:`ref-classes-nativesdk` class is inherited last.
2083 2084
2084- Create a :ref:`ref-classes-nativesdk` variant of any recipe by adding the following:: 2085- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
2086 ``myrecipe.bb``) by adding the following to the recipe::
2085 2087
2086 BBCLASSEXTEND = "nativesdk" 2088 BBCLASSEXTEND = "nativesdk"
2087 2089