diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-09-22 17:21:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:11 +0100 |
commit | 3a0872867105bfc58e039c082d146832f212a140 (patch) | |
tree | d9ae460d550b185da98c547254870451885e2a1d /meta/classes | |
parent | b853dded4103e971f0a802e1a270c301037891ba (diff) | |
download | poky-3a0872867105bfc58e039c082d146832f212a140.tar.gz |
classes/populate_sdk_ext: allow custom configuration for extensible SDK
Provide the ability to define a function containing extra configuration
values to be added to the local.conf file that goes into the SDK. For
example, this could be used to set up SSTATE_MIRRORS within the SDK.
(From OE-Core rev: ef7001232ac2da8ee63ec568d1abba13e4fd4382)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 15cae71496..947ec741ac 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -157,6 +157,13 @@ python copy_buildsystem () { | |||
157 | # Ensure locked sstate cache objects are re-used without error | 157 | # Ensure locked sstate cache objects are re-used without error |
158 | f.write('SIGGEN_LOCKEDSIGS_CHECK_LEVEL = "warn"\n\n') | 158 | f.write('SIGGEN_LOCKEDSIGS_CHECK_LEVEL = "warn"\n\n') |
159 | 159 | ||
160 | # If you define a sdk_extraconf() function then it can contain additional config | ||
161 | extraconf = (d.getVar('sdk_extraconf', True) or '').strip() | ||
162 | if extraconf: | ||
163 | # Strip off any leading / trailing spaces | ||
164 | for line in extraconf.splitlines(): | ||
165 | f.write(line.strip() + '\n') | ||
166 | |||
160 | f.write('require conf/locked-sigs.inc\n') | 167 | f.write('require conf/locked-sigs.inc\n') |
161 | f.write('require conf/work-config.inc\n') | 168 | f.write('require conf/work-config.inc\n') |
162 | 169 | ||