diff options
author | Saul Wold <Saul.Wold@intel.com> | 2010-10-07 23:35:26 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-08 16:46:33 +0100 |
commit | 7d429655652eb3ab5efa5473050b5270b098446e (patch) | |
tree | 82137498ad2ab8ef79e4c4f99a2f3f00ff51e743 /meta/classes | |
parent | c47132ae665a3466bff57978a43f02ea2c7512b1 (diff) | |
download | openembedded-core-7d429655652eb3ab5efa5473050b5270b098446e.tar.gz openembedded-core-7d429655652eb3ab5efa5473050b5270b098446e.tar.bz2 openembedded-core-7d429655652eb3ab5efa5473050b5270b098446e.zip |
base.bbclass: add support for commercial license check
This addresses [BUGID #410], require implict action by someone to enable
functionality that may have license implications.
By default this diables mp3 and mpeg decoding
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9ab8204dbc..3c3c779dba 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -466,6 +466,12 @@ python () { if license == "INVALID": bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) + commercial_license = bb.data.getVar('COMMERCIAL_LICENSE', d, 1) + import re + if commercial_license and re.search(pn, commercial_license): + bb.note("SKIPPING %s because it's Commerciallly Licensed" % pn) + raise bb.parse.SkipPackage("because it requires commercial license to ship product") + # If we're building a target package we need to use fakeroot (pseudo) # in order to capture permissions, owners, groups and special files if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): |