diff options
Diffstat (limited to 'bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst')
-rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst index a27b7758d9..f60a9d8312 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst | |||
@@ -998,9 +998,9 @@ This directive allows fine-tuning local configurations with configuration | |||
998 | snippets contained in layers in a structured, controlled way. Typically it would | 998 | snippets contained in layers in a structured, controlled way. Typically it would |
999 | go into ``bitbake.conf``, for example:: | 999 | go into ``bitbake.conf``, for example:: |
1000 | 1000 | ||
1001 | addfragments conf/fragments OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS | 1001 | addfragments conf/fragments OE_FRAGMENTS OE_FRAGMENTS_METADATA_VARS OE_BUILTIN_FRAGMENTS |
1002 | 1002 | ||
1003 | ``addfragments`` takes three parameters: | 1003 | ``addfragments`` takes four parameters: |
1004 | 1004 | ||
1005 | - path prefix for fragment files inside the layer file tree that bitbake | 1005 | - path prefix for fragment files inside the layer file tree that bitbake |
1006 | uses to construct full paths to the fragment files | 1006 | uses to construct full paths to the fragment files |
@@ -1011,6 +1011,8 @@ go into ``bitbake.conf``, for example:: | |||
1011 | - name of variable that contains a list of variable names containing | 1011 | - name of variable that contains a list of variable names containing |
1012 | fragment-specific metadata (such as descriptions) | 1012 | fragment-specific metadata (such as descriptions) |
1013 | 1013 | ||
1014 | - name of variable that contains definitions for built-in fragments | ||
1015 | |||
1014 | This allows listing enabled configuration fragments in ``OE_FRAGMENTS`` | 1016 | This allows listing enabled configuration fragments in ``OE_FRAGMENTS`` |
1015 | variable like this:: | 1017 | variable like this:: |
1016 | 1018 | ||
@@ -1035,6 +1037,19 @@ The implementation will add a flag containing the fragment name to each of those | |||
1035 | when parsing fragments, so that the variables are namespaced by fragment name, and do not override | 1037 | when parsing fragments, so that the variables are namespaced by fragment name, and do not override |
1036 | each other when several fragments are enabled. | 1038 | each other when several fragments are enabled. |
1037 | 1039 | ||
1040 | The variable containing a built-in fragment definitions could look like this:: | ||
1041 | |||
1042 | OE_BUILTIN_FRAGMENTS = "someprefix:SOMEVARIABLE anotherprefix:ANOTHERVARIABLE" | ||
1043 | |||
1044 | and then if 'someprefix/somevalue' is added to the variable that holds the list | ||
1045 | of enabled fragments: | ||
1046 | |||
1047 | OE_FRAGMENTS = "... someprefix/somevalue" | ||
1048 | |||
1049 | bitbake will treat that as direct value assignment in its configuration:: | ||
1050 | |||
1051 | SOMEVARIABLE = "somevalue" | ||
1052 | |||
1038 | Functions | 1053 | Functions |
1039 | ========= | 1054 | ========= |
1040 | 1055 | ||