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 08:38:12 -0700
commita3fb537a4714ce2ce9f8b3834abe0d0777e02876 (patch)
treef7e64e531ff290520e0d2fb63af2bd8ef485a44e /documentation
parent7f3f70747ba9ab431d0518c7ede64a55181d124f (diff)
downloadpoky-a3fb537a4714ce2ce9f8b3834abe0d0777e02876.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: c44d05d11833de4645d72fb8f987123e693494f4) 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 ef455f4e22..1d76b36d45 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2025,6 +2025,16 @@ couple different ways:
2025 inherit statement in the recipe after all other inherit statements so 2025 inherit statement in the recipe after all other inherit statements so
2026 that the :ref:`ref-classes-nativesdk` class is inherited last. 2026 that the :ref:`ref-classes-nativesdk` class is inherited last.
2027 2027
2028 .. note::
2029
2030 When creating a recipe, you must follow this naming convention::
2031
2032 nativesdk-myrecipe.bb
2033
2034
2035 Not doing so can lead to subtle problems because there is code that
2036 depends on the naming convention.
2037
2028- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g. 2038- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
2029 ``myrecipe.bb``) by adding the following to the recipe:: 2039 ``myrecipe.bb``) by adding the following to the recipe::
2030 2040
@@ -2035,16 +2045,6 @@ couple different ways:
2035 specify any functionality specific to the respective SDK machine or 2045 specify any functionality specific to the respective SDK machine or
2036 target case. 2046 target case.
2037 2047
2038.. note::
2039
2040 When creating a recipe, you must follow this naming convention::
2041
2042 nativesdk-myrecipe.bb
2043
2044
2045 Not doing so can lead to subtle problems because there is code that
2046 depends on the naming convention.
2047
2048Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both 2048Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both
2049methods. The advantage of the second method is that you do not need to 2049methods. The advantage of the second method is that you do not need to
2050have two separate recipes (assuming you need both) for the SDK machine 2050have two separate recipes (assuming you need both) for the SDK machine