summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 14689ec6ac..84232ed9f5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -375,6 +375,10 @@ python copy_buildsystem () {
375 # Map gcc-dependent uninative sstate cache for installer usage 375 # Map gcc-dependent uninative sstate cache for installer usage
376 f.write('SSTATE_MIRRORS += " file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n\n') 376 f.write('SSTATE_MIRRORS += " file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n\n')
377 377
378 if d.getVar("PRSERV_HOST"):
379 # Override this, we now include PR data, so it should only point ot the local database
380 f.write('PRSERV_HOST = "localhost:0"\n\n')
381
378 # Allow additional config through sdk-extra.conf 382 # Allow additional config through sdk-extra.conf
379 fn = bb.cookerdata.findConfigFile('sdk-extra.conf', d) 383 fn = bb.cookerdata.findConfigFile('sdk-extra.conf', d)
380 if fn: 384 if fn:
@@ -398,6 +402,27 @@ python copy_buildsystem () {
398 bb.utils.mkdirhier(os.path.join(baseoutpath, 'cache')) 402 bb.utils.mkdirhier(os.path.join(baseoutpath, 'cache'))
399 shutil.copyfile(builddir + '/cache/bb_unihashes.dat', baseoutpath + '/cache/bb_unihashes.dat') 403 shutil.copyfile(builddir + '/cache/bb_unihashes.dat', baseoutpath + '/cache/bb_unihashes.dat')
400 404
405 # If PR Service is in use, we need to export this as well
406 bb.note('Do we have a pr database?')
407 if d.getVar("PRSERV_HOST"):
408 bb.note('Writing PR database...')
409 # Based on the code in classes/prexport.bbclass
410 import oe.prservice
411 #dump meta info of tables
412 localdata = d.createCopy()
413 localdata.setVar('PRSERV_DUMPOPT_COL', "1")
414 localdata.setVar('PRSERV_DUMPDIR', os.path.join(baseoutpath, 'conf'))
415 localdata.setVar('PRSERV_DUMPFILE', '${PRSERV_DUMPDIR}/prserv.inc')
416
417 bb.note('PR Database write to %s' % (localdata.getVar('PRSERV_DUMPFILE')))
418
419 retval = oe.prservice.prserv_dump_db(localdata)
420 if not retval:
421 bb.error("prexport_handler: export failed!")
422 return
423 (metainfo, datainfo) = retval
424 oe.prservice.prserv_export_tofile(localdata, metainfo, datainfo, True)
425
401 # Use templateconf.cfg file from builddir if exists 426 # Use templateconf.cfg file from builddir if exists
402 if os.path.exists(builddir + '/conf/templateconf.cfg') and use_custom_templateconf == '1': 427 if os.path.exists(builddir + '/conf/templateconf.cfg') and use_custom_templateconf == '1':
403 shutil.copyfile(builddir + '/conf/templateconf.cfg', baseoutpath + '/conf/templateconf.cfg') 428 shutil.copyfile(builddir + '/conf/templateconf.cfg', baseoutpath + '/conf/templateconf.cfg')