summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2025-06-06 17:01:48 +0200
committerSteve Sakoman <steve@sakoman.com>2025-06-20 09:21:27 -0700
commite0d4a32841e242a15d0b91afece90d1258a61a60 (patch)
tree7beaf1d28b797364a9ded692fafdd8770dc69875 /documentation
parent46389a33461bf8d49538b2aa107faf31154704d0 (diff)
downloadpoky-e0d4a32841e242a15d0b91afece90d1258a61a60.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: 4852b8be918be0d0e73d82fff458822100e2f49b) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit 15fe239e1e62b9add737aa732dd7f5e9948ee03d) 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.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 2f6d337b75..4f0459835a 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