[OE-core] [PATCH] license.bbclass base.bbclass: support for 'or' operand in LICENSE and for SPDX license names
Chris Larson
clarson at kergoth.com
Tue Jan 10 15:34:12 UTC 2012
On Tue, Jan 10, 2012 at 8:17 AM, Andrei Gherzan <andrei at gherzan.ro> wrote:
> From: Andrei Gherzan <andrei.gherzan at windriver.com>
>
> A new function was defined in license.bbclass in order to correctly exclude packages where OE-Style licence naming
> is used. In this way licenses as GPL-3, GPLv3, GPLv3.0 etc will be excluded from a non-GPLv3 build. This function
> takes into consideration if 'or' operand is used.
> The function defined in license.bbclass is called in base.bbclass where packages are excluded based on
> INCOMPATIBLE_LICENSE variable.
>
> [YOCTO #1884]
> [YOCTO #1844]
>
> Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
Out of curiosity, why are we using regex for this when we already have
license parsing in the oe.license module which can handle the OR case?
--
Christopher Larson
More information about the Openembedded-core
mailing list