summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
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:06:30 -0700
commit70473efe13d892f9077ba3ab004caaaf4a80600c (patch)
tree3c7fcd61bd895420e72985a5d35af50f76f96acd /documentation/ref-manual
parent7e68f78b6ea8aee3c44ed164248f93580469c798 (diff)
downloadpoky-70473efe13d892f9077ba3ab004caaaf4a80600c.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: 84ab43b9766e0415e090c6af404ce1c61316f384) 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/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 de6affdea0..e230bb69d0 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -1887,6 +1887,16 @@ couple different ways:
1887 inherit statement in the recipe after all other inherit statements so 1887 inherit statement in the recipe after all other inherit statements so
1888 that the :ref:`ref-classes-nativesdk` class is inherited last. 1888 that the :ref:`ref-classes-nativesdk` class is inherited last.
1889 1889
1890 .. note::
1891
1892 When creating a recipe, you must follow this naming convention::
1893
1894 nativesdk-myrecipe.bb
1895
1896
1897 Not doing so can lead to subtle problems because there is code that
1898 depends on the naming convention.
1899
1890- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g. 1900- Or, create a :ref:`ref-classes-nativesdk` variant of any target recipe (e.g.
1891 ``myrecipe.bb``) by adding the following to the recipe:: 1901 ``myrecipe.bb``) by adding the following to the recipe::
1892 1902
@@ -1897,16 +1907,6 @@ couple different ways:
1897 specify any functionality specific to the respective SDK machine or 1907 specify any functionality specific to the respective SDK machine or
1898 target case. 1908 target case.
1899 1909
1900.. note::
1901
1902 When creating a recipe, you must follow this naming convention::
1903
1904 nativesdk-myrecipe.bb
1905
1906
1907 Not doing so can lead to subtle problems because there is code that
1908 depends on the naming convention.
1909
1910Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both 1910Although applied differently, the :ref:`ref-classes-nativesdk` class is used with both
1911methods. The advantage of the second method is that you do not need to 1911methods. The advantage of the second method is that you do not need to
1912have two separate recipes (assuming you need both) for the SDK machine 1912have two separate recipes (assuming you need both) for the SDK machine