summaryrefslogtreecommitdiffstats
path: root/bitbake
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:13:50 +0100
commitbf567b14a8ccdf01667e4dd52d0705d967533927 (patch)
tree2fd2d7356f703153dd2bb7ae4db9881544365a39 /bitbake
parent991557216e4d7bf6d47e5f8054c0c3b0879a8bf5 (diff)
downloadast2050-yocto-poky-bf567b14a8ccdf01667e4dd52d0705d967533927.zip
ast2050-yocto-poky-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>
Diffstat (limited to 'bitbake')
-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):
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:
OpenPOWER on IntegriCloud