Message ID | 20231011084804.154987-1-arne.schwerdt@elbbits.com |
---|---|
State | New |
Headers | show |
Series | ref-manual: Warn about COMPATIBLE_MACHINE skipping native recipes | expand |
Hi Arne On 11.10.23 at 10:48, Arne Schwerdt wrote: > --- > A recipe inherits from the native.bbclass is always skipped when the COMPATIBLE_MACHINE is set. This behavior has been introduced with daisy (poky/meta/classes/native.bbclass:107). It should be at least mentioned in the documentation. > > documentation/ref-manual/variables.rst | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst > index 11523bb9e..a6f7ea03a 100644 > --- a/documentation/ref-manual/variables.rst > +++ b/documentation/ref-manual/variables.rst > @@ -1358,6 +1358,12 @@ system and gives an overview of their function and contents. > speed since the build system skips parsing recipes not compatible > with the current machine. > > + .. note:: > + > + When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from native, the recipe is always skipped. > + All native recipes must be entirely target independent and should not rely on :term:`MACHINE`. > + > + > :term:`COMPLEMENTARY_GLOB` > Defines wildcards to match when installing a list of complementary > packages for all the packages explicitly (or implicitly) installed in Thanks for the patch! Oops, you forget to sign-off your patch. Next time you should use "git commit -s" (see https://docs.yoctoproject.org/contributor-guide/submit-changes.html#creating-patches). I fixed this by myself. Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> and merged into "master-next". Thanks again! Cheers Michael.
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 11523bb9e..a6f7ea03a 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -1358,6 +1358,12 @@ system and gives an overview of their function and contents. speed since the build system skips parsing recipes not compatible with the current machine. + .. note:: + + When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from native, the recipe is always skipped. + All native recipes must be entirely target independent and should not rely on :term:`MACHINE`. + + :term:`COMPLEMENTARY_GLOB` Defines wildcards to match when installing a list of complementary packages for all the packages explicitly (or implicitly) installed in