From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Cristiana Voicu <cristiana.voicu@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 2/2] bitbake & hob: implement functions to assure consistency for configuration files
Date: Wed, 23 Jan 2013 16:05:24 +0000 [thread overview]
Message-ID: <1358957124.6356.63.camel@ted> (raw)
In-Reply-To: <1358943248-21313-1-git-send-email-cristiana.voicu@intel.com>
On Wed, 2013-01-23 at 14:14 +0200, Cristiana Voicu wrote:
> Added a new command in bitbake to save a variable in a file; added a function
> in cooker which is called by this command
>
> The function saveConfigurationVar from cooker.py saves a variable in the file that
> is received by argument. It checks all the operations made on that variable, using the history.
> If it's the first time when it does some changes on a variable,it comments the lines where
> an operation is made on it, and it sets it in a line to the end of file. If it's not
> the first time(it has a comment before), it replaces the line.
>
> Make some changes in hob to save the variables from bblayers.conf and local.conf
> using the bitbake command.
>
> Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
> ---
> bitbake/lib/bb/command.py | 7 +++
> bitbake/lib/bb/cooker.py | 86 +++++++++++++++++++++++++++
> bitbake/lib/bb/data_smart.py | 21 +++++++
> bitbake/lib/bb/ui/crumbs/builder.py | 32 ++++++----
> bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 3 +
> bitbake/lib/bb/ui/crumbs/template.py | 24 --------
> 6 files changed, 136 insertions(+), 37 deletions(-)
>
> diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
> index 0fed25a..77b08b1 100644
> --- a/bitbake/lib/bb/command.py
> +++ b/bitbake/lib/bb/command.py
> @@ -179,6 +179,7 @@ class CommandsSync:
> Init the cooker to initial state with nothing parsed
> """
> command.cooker.initialize()
> + command.cooker.enableDataTracking()
Please make this a new separte command to the server and also add a
disable call which you can call once hob has the configuration data.
Cheers,
Richard
prev parent reply other threads:[~2013-01-23 16:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 12:14 [PATCH 2/2] bitbake & hob: implement functions to assure consistency for configuration files Cristiana Voicu
2013-01-23 16:05 ` Richard Purdie [this message]
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=1358957124.6356.63.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=cristiana.voicu@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