diff options
| -rw-r--r-- | meta/classes/insane.bbclass | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 3906ba797e..aa304f108e 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -589,7 +589,7 @@ python populate_lic_qa_checksum() {          sane = package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)      srcdir = d.getVar('S') - +    corebase_licensefile = d.getVar('COREBASE') + "/LICENSE"      for url in lic_files.split():          try:              (type, host, path, user, pswd, parm) = bb.fetch.decodeurl(url) @@ -601,6 +601,9 @@ python populate_lic_qa_checksum() {              package_qa_handle_error("license-checksum", pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile, d)              continue +        if (srclicfile == corebase_licensefile): +            bb.warn("${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future") +          recipemd5 = parm.get('md5', '')          beginline, endline = 0, 0          if 'beginline' in parm: | 
