]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: fix working with uninative sstate
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 Jan 2017 18:48:17 +0000 (20:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jan 2017 13:58:23 +0000 (13:58 +0000)
Mapped uninative sstate directories to make ext SDK installer to
use them when it's run on systems with gcc version different from
gcc version used to build installer.

[YOCTO #10832]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass

index 1904508af37c4edf8797942947e2c5dde40b28fb..8cd31f3c0634328b6c638f3e255e10ac60d50de2 100644 (file)
@@ -308,7 +308,10 @@ python copy_buildsystem () {
             f.write('BB_SETSCENE_ENFORCE_WHITELIST = "%:* *:do_shared_workdir *:do_rm_work"\n\n')
 
             # Hide the config information from bitbake output (since it's fixed within the SDK)
-            f.write('BUILDCFG_HEADER = ""\n')
+            f.write('BUILDCFG_HEADER = ""\n\n')
+
+            # Map gcc-dependent uninative sstate cache for installer usage
+            f.write('SSTATE_MIRRORS = "file://universal/(.*) file://universal-4.9/\\1\\nfile://universal-4.9/(.*) file://universal-4.8/\\1"\n\n')
 
             # Allow additional config through sdk-extra.conf
             fn = bb.cookerdata.findConfigFile('sdk-extra.conf', d)