aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Mandel <o.mandel@menlosystems.com>2017-09-02 22:24:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-04 17:51:06 +0100
commit3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea (patch)
tree7592c4cb3c53a655cb04272e230c28ed7bfca9ff
parent9fe38f94b54a8644ac6f493c49e63dd6da5bfbdf (diff)
downloadbitbake-3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea.zip
bitbake-3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea.tar.gz
bitbake-3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea.tar.bz2
toaster: set default pokydirname if no external layers
If no external layers are defined, pokydirname is not set. Rectify this by taking the 'be.sourcedir' as the pokydirname. [YOCTO #12015] Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com> Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/bldcontrol/localhostbecontroller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index a93cf40..a2ca95b 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -213,6 +213,10 @@ class LocalhostBEController(BuildEnvironmentController):
self.setCloneStatus(bitbake,'complete',clone_total,clone_count)
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: