[oe-commits] Paul Eggleton : classes/populate_sdk_ext: allow custom configuration for extensible SDK

git at git.openembedded.org git at git.openembedded.org
Tue Sep 22 17:09:23 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: d76ab3255f4002cbb22ee11180774243c6afa970
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d76ab3255f4002cbb22ee11180774243c6afa970

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Sep 22 17:21:17 2015 +0100

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/populate_sdk_ext.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 15cae71..947ec74 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')
 



More information about the Openembedded-commits mailing list