From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Dongxiao Xu <dongxiao.xu@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 8/8] Hob: Set empty DISTRO if "defaultsetup" is selected
Date: Sat, 24 Mar 2012 10:20:59 +0000 [thread overview]
Message-ID: <1332584459.9740.508.camel@ted> (raw)
In-Reply-To: <a8df5fb9f370eb9024df8ff73b23f9c963c18377.1332567775.git.dongxiao.xu@intel.com>
On Sat, 2012-03-24 at 13:47 +0800, Dongxiao Xu wrote:
> In Hob advanced setting, if "defaultsetup" is selected, we need to set
> empty to DISTRO variable in bitbake server.
>
> Otherwise, defaultsetup.conf will be parsed twice, causing TMPDIR and
> its related variables mess up.
>
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
> lib/bb/ui/crumbs/hobeventhandler.py | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
> index 4b8aabc..a98a0bb 100644
> --- a/lib/bb/ui/crumbs/hobeventhandler.py
> +++ b/lib/bb/ui/crumbs/hobeventhandler.py
> @@ -274,6 +274,8 @@ class HobHandler(gobject.GObject):
> self.server.runCommand(["setVariable", "IMAGE_FSTYPES", " ".join(image_fstypes).lstrip(" ")])
>
> def set_distro(self, distro):
> + if distro == "defaultsetup":
> + distro = ""
> self.server.runCommand(["setVariable", "DISTRO", distro])
>
> def set_package_format(self, format):
This worries me a little since you're doing something different to what
the usual case would be (DISTRO not set at all). Is there not a way we
can not set DISTRO at all so we ensure we're consistent?
What I'd like to avoid is a set of "hob-only" bugs caused by doing
things slightly differently.
Cheers,
Richard
next prev parent reply other threads:[~2012-03-24 10:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-24 5:47 [PATCH 0/8 v2][PULL] Hob: Bug fixes: image_types, runqemu/deploy functionality filter, and DISTRO setting Dongxiao Xu
2012-03-24 5:47 ` [PATCH 1/8] Hob: Remove unnecessary PARSE_BBFILES command Dongxiao Xu
2012-03-24 5:47 ` [PATCH 2/8] Hob: Cleanup for hobeventhandler.py Dongxiao Xu
2012-03-24 5:47 ` [PATCH 3/8] Hob: Initial an empty label in recipeselectionpage.py Dongxiao Xu
2012-03-24 5:47 ` [PATCH 4/8] Hob: Change the Hob initialization process Dongxiao Xu
2012-03-24 5:47 ` [PATCH 5/8] Hob: Fix the workaround to get image types Dongxiao Xu
2012-03-24 5:47 ` [PATCH 6/8] Hob: Add a supported image type "vmdk" Dongxiao Xu
2012-03-24 5:47 ` [PATCH 7/8] Hob: runqemu and deployment functionality filter Dongxiao Xu
2012-03-24 5:47 ` [PATCH 8/8] Hob: Set empty DISTRO if "defaultsetup" is selected Dongxiao Xu
2012-03-24 10:20 ` Richard Purdie [this message]
2012-03-24 11:09 ` Xu, Dongxiao
2012-03-24 11:40 ` Richard Purdie
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=1332584459.9740.508.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=dongxiao.xu@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox