]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
license_image.bbclass: Make QA errors fail the build
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 21 Apr 2022 21:11:46 +0000 (23:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Apr 2022 20:59:32 +0000 (21:59 +0100)
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 <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license_image.bbclass

index 7e1d0e08a9c00499eb793f40bfa67584b38e8b79..3213ea758e0f13410fe9e834e04161dd0c63226a 100644 (file)
@@ -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