From c4f72e13fa5e536f0039f5ab7af3525149ea293b Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 3 Dec 2013 09:11:46 -0600 Subject: [PATCH] ref-manual: Added the native class. (From yocto-docs rev: 9be6f08f35e085302a0527d8eaa76062b898b247) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index 131ca0ea24..9be0d0191a 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -1147,6 +1147,44 @@ +
+ <filename>native.bbclass</filename> + + + The native (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 + build host). + + + + 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 or modify a target recipe that has adds + 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. + + + + + Although applied differently, the native class is + used with both methods. + The advantage of the second method is that you do not need to have two + separate recipes (assuming you need both) for native and target. + All common parts of the recipe are automatically shared. + +
+
Pkg-config - <filename>pkgconfig.bbclass</filename>