summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-29 16:36:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-15 10:35:15 +0000
commit354f45865a4773878e90bf919809d419bd257fa0 (patch)
tree91b937402a7e1246f5d387cb3d9eeaf909f55625 /bitbake/lib/bb/ui/crumbs
parent3fe627c51c22560215ce41c617343211aabd2708 (diff)
downloadpoky-354f45865a4773878e90bf919809d419bd257fa0.tar.gz
Hob: Disable the handling of "NoProvider" event
Currently for non-x86 architecture, there are un-resolved dependency issue when generate universe dependency tree. Therefore disable the handling of "NoProvider" event in Hob to enable the build for non-x86 architectures. After we resolved the dependency for universe, we still need to handle this event in Hob. (Bitbake rev: e3c5eed2244d7885418c59a62c9584f6397ee623) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py37
1 files changed, 20 insertions, 17 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 6c109fc551..9c82bfe6fd 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -215,23 +215,26 @@ class HobHandler(gobject.GObject):
215 elif isinstance(event, bb.command.CommandCompleted): 215 elif isinstance(event, bb.command.CommandCompleted):
216 self.current_phase = None 216 self.current_phase = None
217 self.run_next_command() 217 self.run_next_command()
218 218 # TODO: Currently there are NoProvider issues when generate
219 elif isinstance(event, bb.event.NoProvider): 219 # universe tree dependency for non-x86 architecture.
220 if event._runtime: 220 # Comment the follow code to enable the build of non-x86
221 r = "R" 221 # architectures in Hob.
222 else: 222 #elif isinstance(event, bb.event.NoProvider):
223 r = "" 223 # if event._runtime:
224 if event._dependees: 224 # r = "R"
225 self.error_msg += " Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r) 225 # else:
226 else: 226 # r = ""
227 self.error_msg += " Nothing %sPROVIDES '%s'" % (r, event._item) 227 # if event._dependees:
228 if event._reasons: 228 # self.error_msg += " Nothing %sPROVIDES '%s' (but %s %sDEPENDS on or otherwise requires it)" % (r, event._item, ", ".join(event._dependees), r)
229 for reason in event._reasons: 229 # else:
230 self.error_msg += " %s" % reason 230 # self.error_msg += " Nothing %sPROVIDES '%s'" % (r, event._item)
231 231 # if event._reasons:
232 self.commands_async = [] 232 # for reason in event._reasons:
233 self.emit("command-failed", self.error_msg) 233 # self.error_msg += " %s" % reason
234 self.error_msg = "" 234
235 # self.commands_async = []
236 # self.emit("command-failed", self.error_msg)
237 # self.error_msg = ""
235 238
236 elif isinstance(event, bb.command.CommandFailed): 239 elif isinstance(event, bb.command.CommandFailed):
237 self.commands_async = [] 240 self.commands_async = []