]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
create-spdx: Get SPDX-License-Identifier from source
authorSaul Wold <Saul.Wold@windriver.com>
Tue, 8 Feb 2022 15:02:11 +0000 (07:02 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:02:56 +0000 (17:02 +0000)
commit51e5f328635eb022143178c3169bae719509697a
tree36ba68963319e92848ebf9237a4a962428aacd04
parent3f9153986e4e6f667b4bbe97613ec0b279665a97
create-spdx: Get SPDX-License-Identifier from source

This patch will read the begining of source files and try to find
the SPDX-License-Identifier to populate the licenseInfoInFiles
field for each source file. This does not populate licenseConcluded
at this time, nor rolls it up to package level.

We read as binary file since some source code seem to have some
binary characters, the license is then converted to ascii strings.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass