summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorBeth Flanagan <elizabeth.flanagan@intel.com>2011-05-25 13:58:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 23:36:24 +0100
commit1169f1b066d0028bd2ef7915440450bd42ef165e (patch)
tree340f708790f56e2166b8711e490784ae39486585 /bitbake/lib/bb/runqueue.py
parentdeb3b030b388881e664e50ced0a155576388a38f (diff)
downloadpoky-1169f1b066d0028bd2ef7915440450bd42ef165e.tar.gz
license.bbclass: Sane Parsing of licenses
This is a first pass at sane license parsing, using python abstract syntax trees. A few notes on this since ast is not generally used. I massage the LICENSE field to be more pythonesque and then create an ast. I then dump the ast and using a LicenseVisitor class, recurse through the tree, looking for licenses. I then copy and link. It's cleaner, allows for easier addition of logic and while it takes slightly more CPU, it's also slightly faster in initial small scale tests. It doesn't recognize the '+' or '*' modifiers to the licenses yet nor does it know what to do with bitors (|), since I'm not even sure what to do with them. (From OE-Core rev: 2a90a3a41978a5470962b315e007351b8e80820c) Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
0 files changed, 0 insertions, 0 deletions