summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-04-21 23:11:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-30 22:00:20 +0100
commitf2022327f4d9373433fc2999dc3cc784e1b2fbb6 (patch)
tree11d9437611482e7923f267ba6d172226ce2d1561
parentc9ad977a0b57ebcae603293b91fcb810c2dc3ddf (diff)
downloadpoky-f2022327f4d9373433fc2999dc3cc784e1b2fbb6.tar.gz
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. (From OE-Core rev: dd91c4bec8335cab2bbd0b33caf50d314ca72bdc) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/license_image.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass
index 7e1d0e08a9..3213ea758e 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):
104 "The license listed %s was not in the "\ 104 "The license listed %s was not in the "\
105 "licenses collected for recipe %s" 105 "licenses collected for recipe %s"
106 % (lic, pkg_dic[pkg]["PN"]), d) 106 % (lic, pkg_dic[pkg]["PN"]), d)
107 oe.qa.exit_if_errors(d)
108
107 # Two options here: 109 # Two options here:
108 # - Just copy the manifest 110 # - Just copy the manifest
109 # - Copy the manifest and the license directories 111 # - Copy the manifest and the license directories