summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-09-22 17:21:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-22 18:12:51 +0100
commitef7001232ac2da8ee63ec568d1abba13e4fd4382 (patch)
treeef31f64e1233bfa50ab30f60ddec2bfbbfb5e03f /meta/classes
parentba0f6b6ec32275329ebbb7c27f661c027b7a921d (diff)
downloadopenembedded-core-ef7001232ac2da8ee63ec568d1abba13e4fd4382.tar.gz
openembedded-core-ef7001232ac2da8ee63ec568d1abba13e4fd4382.tar.bz2
openembedded-core-ef7001232ac2da8ee63ec568d1abba13e4fd4382.zip
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. 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.bbclass7
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 () {
# Ensure locked sstate cache objects are re-used without error
f.write('SIGGEN_LOCKEDSIGS_CHECK_LEVEL = "warn"\n\n')
+ # If you define a sdk_extraconf() function then it can contain additional config
+ extraconf = (d.getVar('sdk_extraconf', True) or '').strip()
+ if extraconf:
+ # Strip off any leading / trailing spaces
+ for line in extraconf.splitlines():
+ f.write(line.strip() + '\n')
+
f.write('require conf/locked-sigs.inc\n')
f.write('require conf/work-config.inc\n')