Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alex DAMIAN <alexandru.damian@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 6/8] bitbake: cooker, command: add a command to return global data
Date: Mon, 16 Sep 2013 13:21:38 +0100	[thread overview]
Message-ID: <1379334098.3484.292.camel@ted> (raw)
In-Reply-To: <b26fb58fcbdece4c7f36407045c1100a0d3fd8fb.1379332511.git.alexandru.damian@intel.com>

On Mon, 2013-09-16 at 12:56 +0100, Alex DAMIAN wrote:
> From: Alexandru DAMIAN <alexandru.damian@intel.com>
> 
> Adding the 'getDataDump' read-only command that will
> return a dump of the global data state.
> 
> This will be used by UI clients to get the build configuration.
> 
> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> ---
>  bitbake/lib/bb/command.py |  8 ++++++++
>  bitbake/lib/bb/cooker.py  | 15 +++++++++++++++
>  2 files changed, 23 insertions(+)
> 
> diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
> index f1abaf7..84136f1 100644
> --- a/bitbake/lib/bb/command.py
> +++ b/bitbake/lib/bb/command.py
> @@ -145,6 +145,14 @@ class CommandsSync:
>          """
>          command.cooker.shutdown(True)
>  
> +    def getDataDump(self, command, params):
> +        """
> +        Returns a dump of the global state. Call with
> +        variable flags to be retrieved as params.
> +        """
> +        return command.cooker.getGlobalExpandedData(params)

To be blunt, this *sucks* as an API call. "getDataDump" tells me nothing
about what it does. "getGlobalExpandedData" doesn't do much better.

"getAllKeyFlags"?

and please pass in a list as param[0] so there is a:

flaglist = params[0]

in there. This means we can add other parameters if we ever need to and
we don't have complete lock in to the API.

Cheers,

Richard




  reply	other threads:[~2013-09-16 12:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-16 11:56 [PATCH 0/8] webhob related changes in bitbake, version 2 Alex DAMIAN
2013-09-16 11:56 ` [PATCH 1/8] bitbake: cooker: clean up code and avoid duplication Alex DAMIAN
2013-09-16 11:56 ` [PATCH 2/8] bitbake: event: send the task dependency tree to UI Alex DAMIAN
2013-09-16 11:56 ` [PATCH 3/8] bitbake: runqueue: add runQueueTaskSkipped event Alex DAMIAN
2013-09-16 11:56 ` [PATCH 4/8] bitbake: cooker: add extra recipe information Alex DAMIAN
2013-09-16 11:56 ` [PATCH 5/8] bitbake: build: add logfile path for all Task events Alex DAMIAN
2013-09-16 12:14   ` Richard Purdie
2013-09-16 11:56 ` [PATCH 6/8] bitbake: cooker, command: add a command to return global data Alex DAMIAN
2013-09-16 12:21   ` Richard Purdie [this message]
2013-09-16 11:56 ` [PATCH 7/8] bitbake: event: adding events to allow bbclasses to push custom info Alex DAMIAN
2013-09-16 11:56 ` [PATCH 8/8] bitbake: runqueue: add task hash to Queue events Alex DAMIAN

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=1379334098.3484.292.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=alexandru.damian@intel.com \
    --cc=bitbake-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox