[bitbake-devel] [PATCH 2/2] bitbake & hob: implement functions to assure consistency for configuration files
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jan 23 16:05:24 UTC 2013
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 at 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
More information about the bitbake-devel
mailing list