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.
-