mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
multilib.bbclass: fix qa warning of kernel-devicetree
When kernel-devicetree is in RRECOMMENDS such as via variable MACHINE_EXTRA_RRECOMMENDS for some bsp, it shows QA warning of multilib: | WARNING: lib32-packagegroup-base-1.0-r83 do_package: QA Issue: | lib32-packagegroup-base package lib32-packagegroup-machine-base | - suspicious values 'kernel-devicetree' in RRECOMMENDS [multilib] Add kernel-devicetree to exceptions to fix the QA issue. Because there are already 3 kernel related criteria, simplify them by judging package names whether start with 'kernel-'. And also refactor to remove duplicate 'not'. (From OE-Core rev: 5e4504026c6358c7d5649843dc354247f5972558) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -184,11 +184,12 @@ python do_package_qa_multilib() {
|
||||
for i in values:
|
||||
if i.startswith('virtual/'):
|
||||
i = i[len('virtual/'):]
|
||||
if (not i.startswith('kernel-module')) and (not i.startswith(mlprefix)) and \
|
||||
(not 'cross-canadian' in i) and (not i.startswith("nativesdk-")) and \
|
||||
(not i.startswith("rtld")) and (not i.startswith('kernel-vmlinux')) \
|
||||
and (not i.startswith("kernel-image")) and (not i.startswith("/")):
|
||||
|
||||
if (not (i.startswith(mlprefix) or i.startswith("kernel-") \
|
||||
or ('cross-canadian' in i) or i.startswith("nativesdk-") \
|
||||
or i.startswith("rtld") or i.startswith("/"))):
|
||||
candidates.append(i)
|
||||
|
||||
if len(candidates) > 0:
|
||||
msg = "%s package %s - suspicious values '%s' in %s" \
|
||||
% (d.getVar('PN'), pkg, ' '.join(candidates), var)
|
||||
|
||||
Reference in New Issue
Block a user