[bitbake-devel] [RFC PATCH 1/2] data_smart.py: Provide (optional) logging of variable modifications

Peter Seebach peter.seebach at windriver.com
Fri May 18 17:38:07 UTC 2012


On Fri, 18 May 2012 12:27:39 -0500
Peter Seebach <peter.seebach at windriver.com> wrote:

> -        data.setVar('BBINCLUDED',bb.parse.get_file_depends(data))
> +        data.setVar('BBINCLUDED',bb.parse.get_file_depends(data),
> 'cooker.py', 'N/A')

kergoth points out, quite cleverly, that most of the changes that look
like this could be removed.  His suggestion:  Instead of defaulting to
"unknown" for the optional arguments, default to "use the Python stack
inspection to identify the caller."

This seems like a really good idea to me, because it allows us to get
meaningful data in nearly all the cases, while preserving the option of
specifying other values when, say, parsing config files.

Any objections to that as a plan for a v2?

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.




More information about the bitbake-devel mailing list