All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Lock <josh@linux.intel.com>
To: Sathishkumar Duraisamy <bewithsathish@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: HOB usage
Date: Tue, 13 Dec 2011 12:14:35 -0800	[thread overview]
Message-ID: <4EE7B22B.80303@linux.intel.com> (raw)
In-Reply-To: <CANJvwR-T-6a4ofVw7GYF8x9DeJuW0VDyO+rQNCUgrRKio2xKHg@mail.gmail.com>

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@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


  reply	other threads:[~2011-12-13 20:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-05 18:35 HOB usage madeeha javed
2011-12-08 21:57 ` Joshua Lock
2011-12-09  4:52   ` Sathishkumar Duraisamy
2011-12-09  4:58     ` Joshua Lock
2011-12-09  5:07       ` Sathishkumar Duraisamy
2011-12-09  5:18         ` Sathishkumar Duraisamy
2011-12-09 19:06           ` Joshua Lock
2011-12-09 19:38         ` Joshua Lock
2011-12-12  5:20           ` Sathishkumar Duraisamy
2011-12-13 20:14             ` Joshua Lock [this message]
2011-12-19  8:47   ` Ni Qingliang
2011-12-19 19:27     ` Joshua Lock
2011-12-20  1:02       ` Ni Qingliang
  -- strict thread matches above, loose matches on Subject: below --
2012-01-11  3:56 hob usage Jim Abernathy
2012-01-11  5:29 ` McClintock Matthew-B29882

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE7B22B.80303@linux.intel.com \
    --to=josh@linux.intel.com \
    --cc=bewithsathish@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.