]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: canonicalise licenses when dealing with INCOMPATIBLE_LICENSE
authorRoss Burton <ross.burton@intel.com>
Thu, 17 Jul 2014 14:41:05 +0000 (15:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:49 +0000 (00:08 +0100)
commit8998e13fc95f11d15c34fb09d8451a9d4b69f2f1
tree2b2e4f7479e4c0407bf29148a499178e608fdd61
parent32c5b31d8a22bb8ba49db8a5c797ad0f421e67a3
license.bbclass: canonicalise licenses when dealing with INCOMPATIBLE_LICENSE

If INCOMPATIBLE_LICENSE=GPL-3.0 but the recipe sets LICENSE=GPLv3, the current
code won't trigger because they're different strings.

Fix this by attempting to canonicalise every license name to a SPDX name, so
both names in this example become GPL-3.0.

[ YOCTO #5622 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/classes/license.bbclass