summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2025-06-06 17:01:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-20 09:48:14 +0100
commit474742f808378f6d577feaff8e56b3ccbaaee726 (patch)
treebfdc237f86fb7b9cad1a21809fc0bc7cb352541b /documentation/ref-manual
parentd349e792c1cbb06685103b8e18b0109359cfc353 (diff)
downloadpoky-474742f808378f6d577feaff8e56b3ccbaaee726.tar.gz
ref-manual: classes: nativesdk: move note to appropriate section
The nativesdk- prefix to the recipe filename should only be used when using the inherit method as the BBCLASSEXTEND method will do some magic when generating the "implicit" name of the recipe. This matches the instructions for the native class. (From yocto-docs rev: 15fe239e1e62b9add737aa732dd7f5e9948ee03d) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r--documentation/ref-manual/classes.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index b5121aec0f..da2bd028d8 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2082,6 +2082,16 @@ couple different ways:
2082 inherit statement in the recipe after all other inherit statements so 2082 inherit statement in the recipe after all other inherit statements so
2083 that the :ref:`ref-classes-nativesdk` class is inherited last. 2083 that the :ref:`ref-classes-nativesdk` class is inherited last.
2084 2084
2085 .. note::
2086
2087 When creating a recipe, you must follow this naming convention::
2088
2089 nativesdk-myrecipe.bb
2090
2091
2092 Not doing so can lead to subtle problems because there is code that
2093 depends on the naming convention.
2094
2085- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g. 2095- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
2086 ``myrecipe.bb``) by adding the following to the recipe:: 2096 ``myrecipe.bb``) by adding the following to the recipe::
2087 2097
@@ -2092,16 +2102,6 @@ couple different ways:
2092 specify any functionality specific to the respective SDK machine or 2102 specify any functionality specific to the respective SDK machine or
2093 target case. 2103 target case.
2094 2104
2095.. note::
2096
2097 When creating a recipe, you must follow this naming convention::
2098
2099 nativesdk-myrecipe.bb
2100
2101
2102 Not doing so can lead to subtle problems because there is code that
2103 depends on the naming convention.
2104
2105Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both 2105Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both
2106methods. The advantage of the second method is that you do not need to 2106methods. The advantage of the second method is that you do not need to
2107have two separate recipes (assuming you need both) for the SDK machine 2107have two separate recipes (assuming you need both) for the SDK machine