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:09:01 +0000 (00:09 +0100)
commit052ba343ed4b33e684ea44372ae095b57845e898
tree98a66d0e40e652a0c00a7a64ac0f2ea54e16a0c6
parentdfe4f15d4986acd29fdd5cbc4923795fefb977af
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 ]

(From OE-Core rev: 8998e13fc95f11d15c34fb09d8451a9d4b69f2f1)

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