From patchwork Fri Sep 21 14:47:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, v2, 2/4] hob: allow configuring default machine using HOB_MACHINE Date: Fri, 21 Sep 2012 14:47:24 -0000 From: Paul Eggleton X-Patchwork-Id: 37001 Message-Id: To: bitbake-devel@lists.openembedded.org 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/builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 9e9d040..3e96a3b 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -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 "" self.update_configuration_parameters(self.get_parameters_sync()) self.sanity_check() elif initcmd == self.handler.SANITY_CHECK: