[yocto] HOB usage

Joshua Lock josh at linux.intel.com
Tue Dec 13 12:14:35 PST 2011


On 11/12/11 21:20, Sathishkumar Duraisamy wrote:
> Hi,
> 
> Today, I tried to reproduce the problem and magically, today, hob
> works as expected.  So, I started once again with new config, and
> again I tried to reproduce the problem. But the problem exists.
> 
> The reason for this, once we select our images in the
> edit->preference, it writes our preference in the file hob-post.conf
> file. But it doesn't parses it again unless we are restarting the hob
> again.

Hmm, your analysis seems sound enough. We do call the setVariable
command on the cooker which I had expected to ensure the variable was
set appropriately without a reparse.

We can easily add a patch to trigger a reparse once IMAGE_FSTYPES is
changed, as we do with several of the other preference values.

Something like:

joshual at shamshir:~/Projects/Yocto/poky-stable [josh/edison *]
$ git diff
diff --git a/bitbake/lib/bb/ui/crumbs/hobprefs.py
b/bitbake/lib/bb/ui/crumbs/hob
index 5dfb0e6..3f6f128 100644
--- a/bitbake/lib/bb/ui/crumbs/hobprefs.py
+++ b/bitbake/lib/bb/ui/crumbs/hobprefs.py
@@ -39,6 +39,7 @@ class HobPrefs(gtk.Dialog):
             self.selected_image_types =
handler.remove_image_output_type(ot)

         self.configurator.setConfVar('IMAGE_FSTYPES', "%s" % "
".join(self.sele
+        self.reload_required = True

     def sdk_machine_combo_changed_cb(self, combo, handler):
         sdk_mach = combo.get_active_text()

Cheers,
Joshua
-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre



More information about the yocto mailing list