diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-13 16:36:37 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-28 00:07:30 +0000 |
| commit | fea5b7b4526cf4888af4cae95318dd3993f28a50 (patch) | |
| tree | f436a4390efe034617e4fb02d4cf918d2b0980b9 | |
| parent | 29da7370d219924a7f1fa106b13f601ec8795eab (diff) | |
| download | poky-fea5b7b4526cf4888af4cae95318dd3993f28a50.tar.gz | |
insane: Split ERROR_QA into CHECKLAYER_REQUIRED_TESTS
We'd like to start requiring some set of checks are enabled for Yocto Project
Compatible Status and to pass yocto-check-layer. Start by splitting ERROR_QA
into two sets, the ones we think can be required and the ones we know have
challenges to implement (e.g. with prebuilt binaries).
To change the required list, the YP TSC would need to approve.
(From OE-Core rev: ce2e42ace2d15fb6745437cf0a7f07d28398ca12)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-global/insane.bbclass | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 47c8b9be10..e54d2c1508 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
| @@ -24,28 +24,27 @@ | |||
| 24 | # files under exec_prefix | 24 | # files under exec_prefix |
| 25 | # -Check if the package name is upper case | 25 | # -Check if the package name is upper case |
| 26 | 26 | ||
| 27 | # These tests are required to be enabled and pass for Yocto Project Compatible Status | ||
| 28 | # for a layer. To change this list, please contact the Yocto Project TSC. | ||
| 29 | CHECKLAYER_REQUIRED_TESTS = "\ | ||
| 30 | configure-gettext configure-unsafe debug-files dep-cmp expanded-d files-invalid \ | ||
| 31 | host-user-contaminated incompatible-license infodir installed-vs-shipped invalid-chars \ | ||
| 32 | invalid-packageconfig la \ | ||
| 33 | license-checksum license-exception license-exists license-file-missing license-format license-no-generic license-syntax \ | ||
| 34 | mime mime-xdg missing-update-alternatives multilib obsolete-license \ | ||
| 35 | packages-list patch-fuzz patch-status perllocalpod perm-config perm-line perm-link \ | ||
| 36 | pkgconfig pkgvarcheck pkgv-undefined pn-overrides shebang-size src-uri-bad symlink-to-sysroot \ | ||
| 37 | unhandled-features-check unknown-configure-option unlisted-pkg-lics uppercase-pn useless-rpaths \ | ||
| 38 | var-undefined virtual-slash xorg-driver-abi" | ||
| 39 | |||
| 27 | # Elect whether a given type of error is a warning or error, they may | 40 | # Elect whether a given type of error is a warning or error, they may |
| 28 | # have been set by other files. | 41 | # have been set by other files. |
| 29 | WARN_QA ?= "32bit-time native-last pep517-backend" | 42 | WARN_QA ?= "32bit-time native-last pep517-backend" |
| 30 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ | 43 | ERROR_QA ?= "\ |
| 31 | textrel incompatible-license files-invalid \ | 44 | already-stripped arch buildpaths build-deps debug-deps dev-deps dev-elf dev-so empty-dirs file-rdeps \ |
| 32 | infodir build-deps src-uri-bad symlink-to-sysroot multilib \ | 45 | ldflags libdir missing-ptest rpaths staticdev textrel version-going-backwards \ |
| 33 | invalid-packageconfig host-user-contaminated uppercase-pn \ | 46 | ${CHECKLAYER_REQUIRED_TESTS}" |
| 34 | mime mime-xdg unlisted-pkg-lics unhandled-features-check \ | 47 | |
| 35 | missing-update-alternatives missing-ptest \ | ||
| 36 | license-exists license-no-generic license-syntax license-format \ | ||
| 37 | license-exception license-file-missing obsolete-license \ | ||
| 38 | libdir xorg-driver-abi buildpaths \ | ||
| 39 | dep-cmp pkgvarcheck perm-config perm-line perm-link \ | ||
| 40 | packages-list pkgv-undefined var-undefined \ | ||
| 41 | version-going-backwards expanded-d invalid-chars \ | ||
| 42 | license-checksum dev-elf file-rdeps configure-unsafe \ | ||
| 43 | configure-gettext perllocalpod shebang-size \ | ||
| 44 | already-stripped installed-vs-shipped ldflags \ | ||
| 45 | pn-overrides unknown-configure-option \ | ||
| 46 | useless-rpaths rpaths staticdev empty-dirs \ | ||
| 47 | patch-fuzz patch-status virtual-slash \ | ||
| 48 | " | ||
| 49 | # Add usrmerge QA check based on distro feature | 48 | # Add usrmerge QA check based on distro feature |
| 50 | ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" | 49 | ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" |
| 51 | WARN_QA:append:layer-core = " missing-metadata missing-maintainer" | 50 | WARN_QA:append:layer-core = " missing-metadata missing-maintainer" |
