From 095bdd85ed4c0d97a79f191afe84797f7d868fb8 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 19 Nov 2012 15:20:13 -0800 Subject: [PATCH] documentation: poky-ref-manual - method for discovering features Fixes [YOCTO #3292] Added a bit to the start of the Features chapter to give the user a method they can use to discover recipes that are checking for features added to the image. (From yocto-docs rev: 261cc16ad900f7f5254fa97dab82beab94f717d3) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../poky-ref-manual/ref-features.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/documentation/poky-ref-manual/ref-features.xml b/documentation/poky-ref-manual/ref-features.xml index 2178d2a322..ec70547314 100644 --- a/documentation/poky-ref-manual/ref-features.xml +++ b/documentation/poky-ref-manual/ref-features.xml @@ -24,6 +24,25 @@ be included if the distribution itself does not support them. + + One method you can use to determine which recipes are checking to see if a + particular feature is contained or not is to grep through + the metadata for the feature. + Here is an example that discovers the recipes whose build is potentially + changed based on a given feature: + + $ cd $HOME/poky + $ git grep 'contains.*MACHINE_FEATURES.*<feature>' + + + + + This chapter provides a reference of shipped machine and distro features + you can include as part of the image, a reference on image types you can + build, and a reference on feature backfilling. + + +
Distro