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 08:38:12 -0700
commit7f3f70747ba9ab431d0518c7ede64a55181d124f (patch)
treed53da4c3109dfdfe5be8df37b84a1c954cfca1ae /documentation
parent2ffcd8a9b716a1d9f68dcfbda5d2df38eeb0cbff (diff)
downloadpoky-7f3f70747ba9ab431d0518c7ede64a55181d124f.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: 70194ee42c946e1a2122ac143612e334fcbc5241) 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 45973befbe..ef455f4e22 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -1993,7 +1993,8 @@ a couple different ways:
1993 Not using this naming convention can lead to subtle problems 1993 Not using this naming convention can lead to subtle problems
1994 caused by existing code that depends on that naming convention. 1994 caused by existing code that depends on that naming convention.
1995 1995
1996- Create or modify a target recipe that contains the following:: 1996- Or, create a :ref:`ref-classes-native` variant of any target recipe (e.g.
1997 ``myrecipe.bb``) by adding the following to the recipe::
1997 1998
1998 BBCLASSEXTEND = "native" 1999 BBCLASSEXTEND = "native"
1999 2000
@@ -2024,7 +2025,8 @@ couple different ways:
2024 inherit statement in the recipe after all other inherit statements so 2025 inherit statement in the recipe after all other inherit statements so
2025 that the :ref:`ref-classes-nativesdk` class is inherited last. 2026 that the :ref:`ref-classes-nativesdk` class is inherited last.
2026 2027
2027- Create a :ref:`ref-classes-nativesdk` variant of any recipe by adding the following:: 2028- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
2029 ``myrecipe.bb``) by adding the following to the recipe::
2028 2030
2029 BBCLASSEXTEND = "nativesdk" 2031 BBCLASSEXTEND = "nativesdk"
2030 2032