]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: allow plugins to set LICENSE and LIC_FILES_CHKSUM paule/devtool28-oe
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 16 Aug 2017 02:25:00 +0000 (14:25 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 21 Aug 2017 05:28:31 +0000 (17:28 +1200)
commit816e8a5ef59dc6b59d1adc112f51fa80c183bc36
tree81390ea3859fbce03d7045961100a49b114663ea
parent1c1348170c55cd98df026428e4567337386682c1
recipetool: allow plugins to set LICENSE and LIC_FILES_CHKSUM

We were being a bit prescriptive in setting LICENSE and
LIC_FILES_CHKSUM. We can't always trust what's in the metadata
accompanying some source which plugins will almost always be pulling
from, however we do want to allow plugins to set the LICENSE and
LIC_FILES_CHKSUM values. Merge what we find in our license file scan
with what the plugin sends back.

Additionally, plugins can now add a "license" item to the handled list
in order to inhibit the normal LICENSE / LIC_FILES_CHKSUM handling if
they have already taken care of it completely.

Thanks to Mark Horn <mark.d.horn@intel.com> for prompting, testing and
fixing this patch.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_npm.py