Patchwork [bitbake-devel,2/2] hob: allow configuring default machine using HOB_MACHINE

mail settings
Submitter Paul Eggleton
Date Sept. 20, 2012, 3:47 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/36981/
State New
Headers show


Paul Eggleton - Sept. 20, 2012, 3:47 p.m.
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 <>
 bitbake/lib/bb/ui/crumbs/ |    2 ++
 1 file changed, 2 insertions(+)


diff --git a/bitbake/lib/bb/ui/crumbs/ b/bitbake/lib/bb/ui/crumbs/
index 3dcb795..30ccace 100755
--- a/bitbake/lib/bb/ui/crumbs/
+++ b/bitbake/lib/bb/ui/crumbs/
@@ -754,6 +754,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 ""
         elif initcmd == self.handler.SANITY_CHECK: