aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-21 15:47:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 12:12:26 +0100
commitc3b623dc7d546a1ededdb532dcbcba4a6230bc65 (patch)
tree45964c692bf202f43e495990888d451fef40e2d9 /lib/bb
parentcf0a67d62f631aa48d1afc3fbdd0f73995b1c401 (diff)
downloadbitbake-c3b623dc7d546a1ededdb532dcbcba4a6230bc65.tar.gz
hob: allow configuring default machine using HOB_MACHINE
Allow specifying HOB_MACHINE in local.conf to set the initially selected machine. With this set, Hob will select the specified machine and then jump straight into parsing recipes. If you do wish to change the selected machine with HOB_MACHINE set you still can - you just need to stop the parsing process first. Fixes [YOCTO #3148]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rwxr-xr-xlib/bb/ui/crumbs/builder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py
index 0a551ff17..cedbf94d1 100755
--- a/lib/bb/ui/crumbs/builder.py
+++ b/lib/bb/ui/crumbs/builder.py
@@ -756,6 +756,8 @@ class Builder(gtk.Window):
def handler_command_succeeded_cb(self, handler, initcmd):
if initcmd == self.handler.GENERATE_CONFIGURATION:
+ if not self.configuration.curr_mach:
+ self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or ""
self.update_configuration_parameters(self.get_parameters_sync())
self.sanity_check()
elif initcmd == self.handler.SANITY_CHECK: