diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 30504e1cf5..44dc4accea 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -88,6 +88,8 @@ class HobHandler(gobject.GObject): | |||
88 | deploy_dir = self.server.runCommand(["getVariable", "DEPLOY_DIR"]) | 88 | deploy_dir = self.server.runCommand(["getVariable", "DEPLOY_DIR"]) |
89 | self.image_out_dir = os.path.join(deploy_dir, "images") | 89 | self.image_out_dir = os.path.join(deploy_dir, "images") |
90 | self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ") | 90 | self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ") |
91 | self.bbpath = self.server.runCommand(["getVariable", "BBPATH"]) | ||
92 | self.bbfiles = self.server.runCommand(["getVariable", "BBFILES"]) | ||
91 | 93 | ||
92 | def run_next_command(self): | 94 | def run_next_command(self): |
93 | if self.current_command and not self.generating: | 95 | if self.current_command and not self.generating: |
@@ -263,8 +265,7 @@ class HobHandler(gobject.GObject): | |||
263 | self.build_queue = targets | 265 | self.build_queue = targets |
264 | 266 | ||
265 | if not self.bbpath_ok: | 267 | if not self.bbpath_ok: |
266 | bbpath = self.server.runCommand(["getVariable", "BBPATH"]) | 268 | if self.image_dir in self.bbpath.split(":"): |
267 | if self.image_dir in bbpath.split(":"): | ||
268 | self.bbpath_ok = True | 269 | self.bbpath_ok = True |
269 | else: | 270 | else: |
270 | nbbp = self.image_dir | 271 | nbbp = self.image_dir |
@@ -272,8 +273,8 @@ class HobHandler(gobject.GObject): | |||
272 | if not self.bbfiles_ok: | 273 | if not self.bbfiles_ok: |
273 | import re | 274 | import re |
274 | pattern = "%s/\*.bb" % self.image_dir | 275 | pattern = "%s/\*.bb" % self.image_dir |
275 | bbfiles = self.server.runCommand(["getVariable", "BBFILES"]).split(" ") | 276 | |
276 | for files in bbfiles: | 277 | for files in self.bbfiles.split(" "): |
277 | if re.match(pattern, files): | 278 | if re.match(pattern, files): |
278 | self.bbfiles_ok = True | 279 | self.bbfiles_ok = True |
279 | 280 | ||