summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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-21 16:51:07 +0100
commit8ef614ee7738abd34f083991920a6286eee97ba2 (patch)
treeee24c2459536bd0746024b02c2c108be64d59ad1 /bitbake/lib
parent9566ec3c3a317c3fd9efe92d0ce4dad741864eda (diff)
downloadpoky-8ef614ee7738abd34f083991920a6286eee97ba2.tar.gz
bitbake: 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] (Bitbake rev: 4bcf15abbd6c399b7094762394393d41e0f347e7) 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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 38731ef9f0..12071029a6 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -200,6 +200,10 @@ class LocalhostBEController(BuildEnvironmentController):
200 200
201 logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist)) 201 logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist))
202 202
203 if self.pokydirname is None and os.path.exists(os.path.join(self.be.sourcedir, "oe-init-build-env")):
204 logger.debug("localhostbecontroller: selected poky dir name %s" % self.be.sourcedir)
205 self.pokydirname = self.be.sourcedir
206
203 # 5. create custom layer and add custom recipes to it 207 # 5. create custom layer and add custom recipes to it
204 for target in targets: 208 for target in targets:
205 try: 209 try: