[bitbake-devel] [PATCH] bitbake: command: add getOverrideData command

Richard Purdie richard.purdie at linuxfoundation.org
Sat Nov 2 20:43:08 UTC 2019


On Thu, 2019-10-31 at 13:35 -0400, Chris Laplante via bitbake-devel
wrote:
> While working on a script using tinfoil, I needed a way to access the
> overridedata for a given variable. Unfortunately, I found that
> data_smart does not have remotedata proxying for it.
> 
> By adding the getOverrideData command, I am able to use a method like
> this to access override data (either for a particular var, or all
> data):
> 
> def get_override_data(d, var=None):
>     if "_remote_data" in d:
>         connector = d["_remote_data"]  # type:
> bb.tinfoil.TinfoilDataStoreConnector
>         return connector.getOverrideData(var)
> 
>     if var:
>         return d.overridedata[var]
>     return d.overridedata
> 
> Signed-off-by: Chris Laplante <chris.laplante at agilent.com>

The question here is what is the usecase?

The override data in this form is really a datastore internal and
shouldn't be something we expose an external API for. It happens to
exist in this form for the current implementation of the datastore but
it didn't used to and may not again, depending on how we change that
implementation, particularly as people look at parsing performance.

Cheers,

Richard



More information about the bitbake-devel mailing list