[bitbake-devel] how easy to extend "bitbake -e" to print *selected* subset of variables?

Robert P. J. Day rpjday at crashcourse.ca
Thu Nov 22 19:00:49 UTC 2012


  if there's already a simple way to do this, then i'll be slightly
embarrassed.

  i would find it *massively* useful to have a variation of "bitbake
-e" print only the values of the variables that i'm interested in;
this would be incredibly useful in a classroom if i wanted students to
take a look at just those variables related to, say, the kernel.

  rather than having to hack up something using grep, it would be nice
if a user could, say, define an extra variable or class and say
something like:

  $ bitbake -e core-image-minimal --area kernel  (or similar)

where i could define that the "kernel area" represents the variables
such as MACHINE, KMACHINE, KBRANCH, LINUX_KERNEL_TYPE and whatever
variables i decide should belong to that "area."  then when i'm
discussing the kernel, i have a simple command that immediately allows
the students to see how the kernel was configured.

  i realize this can't be hard -- just add some filtering code to that
part of bitbake that prints everything.  thoughts?  is there a way to
do this that i'm not seeing?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the bitbake-devel mailing list