From: Peter Kjellerstedt Date: Thu, 21 Apr 2022 21:11:46 +0000 (+0200) Subject: license_image.bbclass: Make QA errors fail the build X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd91c4bec8335cab2bbd0b33caf50d314ca72bdc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git license_image.bbclass: Make QA errors fail the build If, e.g., license-file-missing is added to ERROR_QA, then the build should fail if any licenses are missing. Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass index 7e1d0e08a9c..3213ea758e0 100644 --- a/meta/classes/license_image.bbclass +++ b/meta/classes/license_image.bbclass @@ -104,6 +104,8 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True): "The license listed %s was not in the "\ "licenses collected for recipe %s" % (lic, pkg_dic[pkg]["PN"]), d) + oe.qa.exit_if_errors(d) + # Two options here: # - Just copy the manifest # - Copy the manifest and the license directories