diff options
author | Olaf Mandel <o.mandel@menlosystems.com> | 2017-09-02 22:24:07 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-05 15:00:49 +0100 |
commit | 3752641986058806c464c4eb155732baf4dbaff7 (patch) | |
tree | ec5688d6b4a72497d82d82b2a6164d854ef2b42b /bitbake/lib/toaster | |
parent | 8b289ea6c32277a2f474dda925aa261296a4cde4 (diff) | |
download | poky-3752641986058806c464c4eb155732baf4dbaff7.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: 3b0f04c7b00aaf44ba146c432fcb5d6fd7dafcea)
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/toaster')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index a93cf40bd6..a2ca95bf42 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -213,6 +213,10 @@ class LocalhostBEController(BuildEnvironmentController): | |||
213 | self.setCloneStatus(bitbake,'complete',clone_total,clone_count) | 213 | self.setCloneStatus(bitbake,'complete',clone_total,clone_count) |
214 | logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist)) | 214 | logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist)) |
215 | 215 | ||
216 | if self.pokydirname is None and os.path.exists(os.path.join(self.be.sourcedir, "oe-init-build-env")): | ||
217 | logger.debug("localhostbecontroller: selected poky dir name %s" % self.be.sourcedir) | ||
218 | self.pokydirname = self.be.sourcedir | ||
219 | |||
216 | # 5. create custom layer and add custom recipes to it | 220 | # 5. create custom layer and add custom recipes to it |
217 | for target in targets: | 221 | for target in targets: |
218 | try: | 222 | try: |