diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2014-12-22 17:30:46 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-24 17:48:57 +0000 |
commit | 346a023a42f127881476e760e8fa4e04303849b9 (patch) | |
tree | aa0de9a23912a0771a861e1ad29eb409bfb7d5e9 /meta/classes/base.bbclass | |
parent | 57e5f74382d51f2a8df00e18b6008e3d2b44ad1a (diff) | |
download | openembedded-core-346a023a42f127881476e760e8fa4e04303849b9.tar.gz openembedded-core-346a023a42f127881476e760e8fa4e04303849b9.tar.bz2 openembedded-core-346a023a42f127881476e760e8fa4e04303849b9.zip |
license: Validate if LICENSE is well defined.
Add check_license_format function that shows warning if LICENSE don't have
valid operators and also if have space separated entries without operator,
add check_license_format validation into base class.
[YOCTO #6758]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 06cfe260ac..b8f61f3955 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -390,6 +390,7 @@ python () { bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) if bb.data.inherits_class('license', d): + check_license_format(d) unmatched_license_flag = check_license_flags(d) if unmatched_license_flag: bb.debug(1, "Skipping %s because it has a restricted license not" |