]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: Avoid build failures where sstate was used
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Mar 2017 14:22:30 +0000 (14:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 May 2017 08:11:16 +0000 (09:11 +0100)
If sstate was used to populate the build and one of the universal-4.8
or universal-4.9 mirror urls was used, the sstate checks during eSDK
construction could fail as it would zero out the SSTATE_MIRRORs
variable.

Use the same mirrors variable setting as the eSDK would end up using
to perform the checks to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass

index 4dfb94caf163705472b3a182748b8bfa8afff3f0..69bc1d91dd7b16e2b4f41950b10d1afbb091e674 100644 (file)
@@ -111,7 +111,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath):
         with open(sdkbasepath + '/conf/local.conf', 'a') as f:
             # Force the use of sstate from the build system
             f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR'))
-            f.write('SSTATE_MIRRORS_forcevariable = ""\n')
+            f.write('SSTATE_MIRRORS_forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n')
             # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it
             f.write('TMPDIR_forcevariable = "${TOPDIR}/tmp"\n')
             f.write('TCLIBCAPPEND_forcevariable = ""\n')