summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2014-12-22 17:30:46 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-25 08:18:12 +0000
commit3ef9f83ab7040684cbc62b276a2598cce55e6c8d (patch)
tree316cb237d1f2a777af19fb8600127081f8f58c68 /meta/classes/base.bbclass
parent101c3bf7f573dd624ecfa24f1a5c44f8abadfe40 (diff)
downloadpoky-3ef9f83ab7040684cbc62b276a2598cce55e6c8d.tar.gz
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] (From OE-Core rev: 346a023a42f127881476e760e8fa4e04303849b9) 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.bbclass1
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 () {
390 bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) 390 bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn)
391 391
392 if bb.data.inherits_class('license', d): 392 if bb.data.inherits_class('license', d):
393 check_license_format(d)
393 unmatched_license_flag = check_license_flags(d) 394 unmatched_license_flag = check_license_flags(d)
394 if unmatched_license_flag: 395 if unmatched_license_flag:
395 bb.debug(1, "Skipping %s because it has a restricted license not" 396 bb.debug(1, "Skipping %s because it has a restricted license not"