]> code.ossystems Code Review - openembedded-core.git/commit
base/license.bbclass: handle multiple INCOMPATIBLE_LICENSEs
authorAndy Ross <andy.ross@windriver.com>
Thu, 29 Nov 2012 19:08:47 +0000 (11:08 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Dec 2012 15:54:26 +0000 (15:54 +0000)
commit8a8d00f4c9f7fe5f9f173b43b86cd18a6c75435c
tree35938bce2192959a0b5ca21eab14728a013e7bda
parent34baee37caccced13fb26f446b865c9f25edf339
base/license.bbclass: handle multiple INCOMPATIBLE_LICENSEs

Allow INCOMPATIBLE_LICENSE to be a whitespace-separated list of
incompatible license strings and/or glob patterns.

Also fix wildcarding: the string in INCOMPATIBLE_LICENSE was clearly
intended to match with wildcards (e.g. "*GPLv3" to match both GPLv3
and LGPLv3), but this was broken because of a bug in return_spdx()
which would die with a runtime error when there was no SPDXLICENSEMAP
entry for the string.

Signed-off-by: Andy Ross <andy.ross@windriver.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/base.bbclass
meta/classes/license.bbclass