[OE-core] [PATCH 1/2] devshell.bbclass: ensure toolchains available for do_devshell
Chang Rebecca Swee Fun
rebecca.swee.fun.chang at intel.com
Mon May 29 05:16:18 UTC 2017
Toolchains are required to be prepopulated in sysroot before
entering devshell.
[YOCTO #11464]
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang at intel.com>
---
meta/classes/devshell.bbclass | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 4de7ea6..770dcbd 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -32,7 +32,16 @@ python () {
# can't manipulate the environment and variables here yet (see YOCTO #4795)
d.setVarFlag("do_devshell", "manualfakeroot", "1")
d.delVarFlag("do_devshell", "fakeroot")
-}
+
+ # We need to ensure that the toolchains are available in the sysroot
+ # when running devshell (see YOCTO #11464)
+ # We get the dependency for do_configure depends varflag and DEPENDS
+ # variable, then append it to do_devshell depends varflag
+ deps = d.getVarFlag('do_configure', 'depends') or ""
+ for x in bb.utils.explode_deps(d.getVar('DEPENDS') or ""):
+ deps += ' %s:do_populate_sysroot' % x
+ d.appendVarFlag('do_devshell', 'depends', deps)
+}
def devpyshell(d):
--
2.7.4
More information about the Openembedded-core
mailing list