Skip to contentSkip to conversation

toaster: set pokydirname in local build

PATCH New Olaf Mandel 1 participant 1 message Aug 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: set pokydirname in local build

If no external layers are defined, pokydirname was not set: rectify this by taking the be.sourcedir as the pokydirname if possible.

---
 lib/toaster/bldcontrol/localhostbecontroller.py | 4 ++++
 1 file changed, 4 insertions(+)
lib/toaster/bldcontrol/localhostbecontroller.py +4 -0
index 62e62fe1..358cce4d 100644
@@ -200,6 +200,10 @@ class LocalhostBEController(BuildEnvironmentController):
 
         logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist))
 
+        if self.pokydirname is None and os.path.exists(os.path.join(self.be.sourcedir, "oe-init-build-env")):
+            logger.debug("localhostbecontroller: selected poky dir name %s" % self.be.sourcedir)
+            self.pokydirname = self.be.sourcedir
+
         # 5. create custom layer and add custom recipes to it
         for target in targets:
             try:
Signature · 1 line
2.11.0