mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
101c3bf7f5
commit
3ef9f83ab7
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user