summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-01 20:14:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 13:26:50 +0100
commit662fa1b126d5b9b3a80193205c22b2fe29305185 (patch)
tree657cb0d1706fcec97c6c86c5e1b70b1dbabcc613 /lib/bb/ui/crumbs/hobeventhandler.py
parent035e146ff92236a3eda71ad71e8389737f91753b (diff)
downloadbitbake-662fa1b126d5b9b3a80193205c22b2fe29305185.tar.gz
Hob: Fix MACHINE setting
Define the empty curr_mach to be "" instead of None. Fix the judgement for ' if self.curr_mach == "" ' to be ' if self.curr_mach '. Also set machine to bitbake server when "MACHINE" is not empty. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index a329380af..3d5df9e6e 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -256,7 +256,8 @@ class HobHandler(gobject.GObject):
self.server.runCommand(["setVariable", "BBLAYERS", " ".join(bblayers)])
def set_machine(self, machine):
- self.server.runCommand(["setVariable", "MACHINE", machine])
+ if machine:
+ self.server.runCommand(["setVariable", "MACHINE", machine])
def set_sdk_machine(self, sdk_machine):
self.server.runCommand(["setVariable", "SDKMACHINE", sdk_machine])