diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-08 09:48:29 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-14 11:48:35 +0100 |
commit | 0548a5d8eeee682a6e250ddc1886279f52747db2 (patch) | |
tree | d3c384832b5620df39c741e130dd1a4b7f926e60 | |
parent | a00720344d1996db9e4afff1c974b3158fb8dae7 (diff) | |
download | openembedded-core-0548a5d8eeee682a6e250ddc1886279f52747db2.tar.gz |
recipetool: Add logger info for missing license entries
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/recipetool/create.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 87b25ebc7e..a8c4cdef4a 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -1128,6 +1128,9 @@ def guess_license(srctree, d): license, crunched_md5, lictext = crunch_license(licfile) if lictext and not license: license = 'Unknown' + logger.info("Please add the following line for '%s' to a 'lib/recipetool/licenses.csv' " \ + "and replace `Unknown` with the license:\n" \ + "%s,Unknown" % (os.path.relpath(licfile, srctree), md5value)) if license: licenses.append((license, os.path.relpath(licfile, srctree), md5value)) |