From 6d9de01c181066326365ff743c4c4cb5707db1e2 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 26 Sep 2018 13:19:10 -0700 Subject: ref-manual: Updates to native.bbclass Fixes [YOCTO #12924] Naming convention does not apply to the second recipe-creation method described in this class. I have moved the note about that to be under the applicable method (i.e. the first bullet). Fixed the syntax reversal of the sample name in the example. (From yocto-docs rev: f7f1a89043156527fa4b426c0322ad225a9f2ff1) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 36 +++++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'documentation/ref-manual/ref-classes.xml') diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index 1728139aba..24d7a0a99e 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -2173,8 +2173,9 @@ This check was removed for YP 2.3 release The native class provides common - functionality for recipes that wish to build tools to run on the build - host (i.e. tools that use the compiler or other tools from the + functionality for recipes that build tools to run on the + build host + (i.e. tools that use the compiler or other tools from the build host). @@ -2182,30 +2183,35 @@ This check was removed for YP 2.3 release You can create a recipe that builds tools that run natively on the host a couple different ways: - Create a myrecipe-native.bb - that inherits the native class. + + Create a + myrecipe-native.bb + recipe that inherits the native class. If you use this method, you must order the inherit statement in the recipe after all other inherit statements so that the native class is inherited last. + Warning + When creating a recipe this way, the recipe name must + follow this naming convention: + + myrecipe-native.bb + + Not using this naming convention can lead to subtle + problems caused by existing code that depends on that + naming convention. + - Create or modify a target recipe that contains - the following: + + Create or modify a target recipe that contains the following: BBCLASSEXTEND = "native" Inside the recipe, use _class-native and _class-target overrides to specify any functionality specific to the respective native or target - case. + case. + - Warning - When creating a recipe, you must follow this naming convention: - - native-myrecipe.bb - - Not doing so can lead to subtle problems because code exists - that depends on the naming convention. - -- cgit v1.2.3-54-g00ecf