]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: pass BBPATH to devtool --bbpath
authorChristopher Larson <chris_larson@mentor.com>
Fri, 31 Jul 2015 15:19:14 +0000 (08:19 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Aug 2015 09:43:11 +0000 (10:43 +0100)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass

index 0151468869c2619a5e5e8c0e0b35174adf08a868..a36bf16c7833e5ba3d8697dfabc1af8407ccadb9 100644 (file)
@@ -88,7 +88,8 @@ python copy_buildsystem () {
         config.write(f)
 
     # Create a layer for new recipes / appends
-    bb.process.run("devtool --basepath %s create-workspace --create-only %s" % (baseoutpath, os.path.join(baseoutpath, 'workspace')))
+    bbpath = d.getVar('BBPATH', True)
+    bb.process.run(['devtool', '--bbpath', bbpath, '--basepath', baseoutpath, 'create-workspace', '--create-only', os.path.join(baseoutpath, 'workspace')])
 
     # Create bblayers.conf
     bb.utils.mkdirhier(baseoutpath + '/conf')