]> code.ossystems Code Review - openembedded-core.git/commit
license: simple verification of LICENSE_<pkg> values
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 3 Aug 2016 13:32:15 +0000 (16:32 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2016 21:54:44 +0000 (22:54 +0100)
commit0f4163a12ea431d0ba6265880ee1e557333d3211
treefb608ccfb524b96e93fa321996ed955b2beeeb0c
parentd7229489c7dfd35164fd107d7944f3c273776118
license: simple verification of LICENSE_<pkg> values

LICENSE should be a superset of all LICENSE_<pkg> values. That is,
LICENSE should contain all licenses and LICENSE_<pkg> can be used to
"filter" this on a per-package basis. LICENSE_<pkg> shouldn't contain
anything that isn't specified in LICENSE.

This patch implements simple checking of LICENSE_<pkg> values. It does
do not do advanced parsing/matching of license expressions, but,
checks that all licenses mentioned in LICENSE_<pkg> are also specified in
LICENSE. A warning is printed if problems are found.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/base.bbclass
meta/lib/oe/license.py