summaryrefslogtreecommitdiff
path: root/meta/classes/image-prelink.bbclass
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:18 +0100
commit2a90a3a41978a5470962b315e007351b8e80820c (patch)
tree94a39f2a71f4569a52f3ae47c4fd7eaf7ebb8cb9 /meta/classes/image-prelink.bbclass
parent21613c7ccfa54874ead33c5ae0f1a160db163b37 (diff)
downloadopenembedded-core-2a90a3a41978a5470962b315e007351b8e80820c.tar.gz
openembedded-core-2a90a3a41978a5470962b315e007351b8e80820c.tar.bz2
openembedded-core-2a90a3a41978a5470962b315e007351b8e80820c.tar.xz
openembedded-core-2a90a3a41978a5470962b315e007351b8e80820c.zip
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. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
Diffstat (limited to 'meta/classes/image-prelink.bbclass')
0 files changed, 0 insertions, 0 deletions