diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-04-21 23:11:46 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2022-05-24 04:34:23 -1000 |
commit | 72aa42425e456ab0210129df01d829465acadb6d (patch) | |
tree | b6110c2ab3057d51eafc5fa6535ea52c0d98a2f9 /meta/classes | |
parent | c762a5c97b61b4d560cda33ba4a7c329df0fc9f8 (diff) | |
download | openembedded-core-contrib-72aa42425e456ab0210129df01d829465acadb6d.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.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dd91c4bec8335cab2bbd0b33caf50d314ca72bdc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/license_image.bbclass | 2 |
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): "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 |