]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
hob: after adding a layer, hob do not parse the configuration
authorCristiana Voicu <cristiana.voicu@intel.com>
Fri, 6 Dec 2013 12:23:04 +0000 (14:23 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Dec 2013 11:12:30 +0000 (11:12 +0000)
Moved the parseConfiguration method before obtaining the machines and
other configurations from bitbake. If not, Hob doesn't see the new machines
added by the new layer.

[YOCTO #5632]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/crumbs/builder.py
lib/bb/ui/crumbs/hobeventhandler.py

index e0fc0d1114bdbbd59d07f4b6d9c5f530e9bcfe7e..1eae8149432acd67667f824bcf3179e54aac34e2 100755 (executable)
@@ -528,9 +528,9 @@ class Builder(gtk.Window):
         self.generate_configuration()
 
     def update_config_async(self):
-        self.switch_page(self.MACHINE_SELECTION)
         self.set_user_config()
         self.generate_configuration()
+        self.switch_page(self.MACHINE_SELECTION)
 
     def sanity_check(self):
         self.handler.trigger_sanity_check()
index 7014935f6dd58069e1c93d42a239f0bd95b4f0ff..b12f2d861cbb9be6f93ce59b57592418535166b2 100644 (file)
@@ -403,12 +403,12 @@ class HobHandler(gobject.GObject):
 
     def generate_configuration(self):
         self.runCommand(["setPrePostConfFiles", "conf/.hob.conf", ""])
+        self.commands_async.append(self.SUB_PARSE_CONFIG)
         self.commands_async.append(self.SUB_PATH_LAYERS)
         self.commands_async.append(self.SUB_FILES_DISTRO)
         self.commands_async.append(self.SUB_FILES_MACH)
         self.commands_async.append(self.SUB_FILES_SDKMACH)
         self.commands_async.append(self.SUB_MATCH_CLASS)
-        self.commands_async.append(self.SUB_PARSE_CONFIG)
         self.run_next_command(self.GENERATE_CONFIGURATION)
 
     def generate_recipes(self):