summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-05-10 10:25:05 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-11 10:33:42 +0100
commit296c7e11f1a347d74708b19f10585d415fe453de (patch)
tree6b9a828c64311764f83be9110be3ab8896795f3e /meta/classes/insane.bbclass
parent69cf7b3273beeaad6d52c4f718cd4b0d53845e97 (diff)
downloadpoky-296c7e11f1a347d74708b19f10585d415fe453de.tar.gz
classes/insane: do not force LIC_FILES_CHKSUM unless SRC_URI is set
Recipes such as images and packagegroups don't actually fetch or build any source, so there's really no point having LIC_FILES_CHKSUM set. Forcing users to set it (as we have done for images inheriting image.bbclass) just makes things more difficult for the user for no discernable benefit. The easiest way to adjust this check is simply to skip it if SRC_URI is not set since this is a pretty good indicator that no source is being pulled in. (From OE-Core rev: c269547ae8e90a78349f6003385137e4145e145f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 097dc3a001..0b151c214d 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -681,15 +681,15 @@ python populate_lic_qa_checksum() {
681 import tempfile 681 import tempfile
682 sane = True 682 sane = True
683 683
684 lic_files = d.getVar('LIC_FILES_CHKSUM', True) 684 lic_files = d.getVar('LIC_FILES_CHKSUM', True) or ''
685 lic = d.getVar('LICENSE', True) 685 lic = d.getVar('LICENSE', True)
686 pn = d.getVar('PN', True) 686 pn = d.getVar('PN', True)
687 687
688 if lic == "CLOSED": 688 if lic == "CLOSED":
689 return 689 return
690 690
691 if not lic_files: 691 if not lic_files and d.getVar('SRC_URI', True):
692 package_qa_handle_error("license-checksum", pn + ": Recipe file does not have license file information (LIC_FILES_CHKSUM)", d) 692 package_qa_handle_error("license-checksum", pn + ": Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM)", d)
693 return 693 return
694 694
695 srcdir = d.getVar('S', True) 695 srcdir = d.getVar('S', True)