summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-21 14:47:24 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 11:13:50 (GMT)
commitbf567b14a8ccdf01667e4dd52d0705d967533927 (patch)
tree2fd2d7356f703153dd2bb7ae4db9881544365a39
parent991557216e4d7bf6d47e5f8054c0c3b0879a8bf5 (diff)
downloadpoky-bf567b14a8ccdf01667e4dd52d0705d967533927.tar.gz
bitbake: 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]. (Bitbake rev: c3b623dc7d546a1ededdb532dcbcba4a6230bc65) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 0a551ff..cedbf94 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -756,6 +756,8 @@ class Builder(gtk.Window):
756 756
757 def handler_command_succeeded_cb(self, handler, initcmd): 757 def handler_command_succeeded_cb(self, handler, initcmd):
758 if initcmd == self.handler.GENERATE_CONFIGURATION: 758 if initcmd == self.handler.GENERATE_CONFIGURATION:
759 if not self.configuration.curr_mach:
760 self.configuration.curr_mach = self.handler.runCommand(["getVariable", "HOB_MACHINE"]) or ""
759 self.update_configuration_parameters(self.get_parameters_sync()) 761 self.update_configuration_parameters(self.get_parameters_sync())
760 self.sanity_check() 762 self.sanity_check()
761 elif initcmd == self.handler.SANITY_CHECK: 763 elif initcmd == self.handler.SANITY_CHECK: