ref-manual: classes: add recipe-naming QA test
PATCH 1/1 ref-manual: classes: add recipe-naming QA test
Add documentation for the new recipe-naming recipe QA test.
--- documentation/ref-manual/classes.rst | 4 ++++ 1 file changed, 4 insertions(+)
documentation/ref-manual/classes.rst +4 -0
@@ -1591,6 +1591,10 @@ The tests you can list with the :term:`WARN_QA` and For example, assignments such as ``FILES:${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``. +- ``recipe-naming:`` Checks that the recipe name and recipe class match, so + that ``*-native`` recipes inherit :term:`native` and ``nativesdk-*`` recipes + inherit :term:`nativesdk`. + - ``rpaths:`` Checks for rpaths in the binaries that contain build system paths such as :term:`TMPDIR`. If this test fails, bad ``-rpath`` options are being passed to the linker commands and your binaries
Signature · 1 line
2.43.0
Quoted 12 lines · Ross Burton via lists.yoctoproject.org
Add documentation for the new recipe-naming recipe QA test.
Signed-off-by Ross Burton <[email protected]>--- documentation/ref-manual/classes.rst | 4 ++++ 1 file changed, 4 insertions(+)documentation/ref-manual/classes.rst +0
-0
documentation/ref-manual/classes.rst The tests you can list with the :term:`WARN_QA` and · line 1596
Quoted 6 lines
documentation/ref-manual/classes.rst +2
-0@@ -1591,6 +1591,10 @@ The tests you can list with the :term:`WARN_QA` and For example, assignments such as ``FILES:${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``. +- ``recipe-naming:`` Checks that the recipe name and recipe class match, so + inherit :term:`nativesdk`.
:term: are not defined for those, but :ref:ref-classes-native and :ref:ref-classes-nativesdk are.
Maybe also say that BBCLASSEXTEND should be set appropriately, so users encountering the issue know what to do?
documentation/ref-manual/classes.rst The tests you can list with the :term:`WARN_QA` and · line 1600
Quoted 4 lines
documentation/ref-manual/classes.rst +1
-0+ - ``rpaths:`` Checks for rpaths in the binaries that contain build system paths such as :term:`TMPDIR`. If this test fails, bad ``-rpath`` options are being passed to the linker commands and your binaries
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 18 lines · Antonin Godard
Quoted 16 lines · Ross Burton via lists.yoctoproject.org
Add documentation for the new recipe-naming recipe QA test.
Signed-off-by Ross Burton <[email protected]>--- documentation/ref-manual/classes.rst | 4 ++++ 1 file changed, 4 insertions(+)documentation/ref-manual/classes.rst +1
-0@@ -1591,6 +1591,10 @@ The tests you can list with the :term:`WARN_QA` and For example, assignments such as ``FILES:${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``. +- ``recipe-naming:`` Checks that the recipe name and recipe class match, so
Quoted 7 lines
documentation/ref-manual/classes.rst The tests you can list with the :term:`WARN_QA` and · line 1596
Quoted 1 line
documentation/ref-manual/classes.rst +1
-0+ inherit :term:`nativesdk`.:term: are not defined for those, but :ref:
ref-classes-nativeand :ref:ref-classes-nativesdkare.Maybe also say that BBCLASSEXTEND should be set appropriately, so users encountering the issue know what to do?
Sorry I got confused, recipes need to inherit one class or the other, so BBCLASSEXTEND is not needed!
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Ross,
Quoted 12 lines · Ross Burton via lists.yoctoproject.org
Add documentation for the new recipe-naming recipe QA test.
Signed-off-by Ross Burton <[email protected]>--- documentation/ref-manual/classes.rst | 4 ++++ 1 file changed, 4 insertions(+)documentation/ref-manual/classes.rst +0
-0
documentation/ref-manual/classes.rst The tests you can list with the :term:`WARN_QA` and · line 1597
Quoted 7 lines
documentation/ref-manual/classes.rst +4
-0@@ -1591,6 +1591,10 @@ The tests you can list with the :term:`WARN_QA` and For example, assignments such as ``FILES:${PN} = "xyz"`` effectively turn into ``FILES = "xyz"``. +- ``recipe-naming:`` Checks that the recipe name and recipe class match, so + that ``*-native`` recipes inherit :term:`native` and ``nativesdk-*`` recipes + inherit :term:`nativesdk`. +
For native/nativesdk after the "inherit" word, prefer pointing at the class documentation, e.g. :ref:ref-classes-native and :ref:ref-classes-nativesdk.
Maybe you could reword into:
that :term:native recipes whose name ends with ``*-native`` inherit :ref:ref-classes-native and :term:nativesdk recipes whose name starts with ``nativesdk-*`` inherit :ref:ref-classes-nativesdk.
What do you think?
Looks good to me otherwise, thanks!
Cheers,
Quentin