1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

insane.bbclass: simplify exceptions for 32 bit time API check

Existing implementation required to list both specific problematic apis, and files that
use them: neither is necessary as both are seen in package_qa error messages, and
can cause excessive amount of exception lines, if there are too many files, or
they are installed in arch-specific locations. Also, the value of INSANE_SKIP
should be the test that needs to be skipped, and in this case it wasn't.

Also, all problematic recipes are now correctly listed.

(From OE-Core rev: e6ebd0c556dfc576a59f5755d97089a2a241f698)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2023-04-28 10:43:51 +02:00
committed by Richard Purdie
parent 850b5d5eed
commit 35e3f3b8d4
2 changed files with 16 additions and 17 deletions
+3 -11
View File
@@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
# At this point, any symbol information is stripped into the debug
# package, so that is the only place we will find them.
elfpath = elfpath.replace('.debug/', '')
allowed = (
d.getVarFlag(
'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_')
) or ''
).split()
usedapis -= set(allowed)
if usedapis:
allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split()
if not allowed:
msgformat = elfpath + " uses 32-bit api '%s'"
for sym in usedapis:
oe.qa.add_message(messages, '32bit-time', msgformat % sym)
oe.qa.add_message(
messages, '32bit-time',
'Suppress with INSANE_SKIP:%s[%s] = "%s"' % (
d.getVar('PN'), elfpath.replace('/', '_'),
' '.join(usedapis)
)
'Suppress with INSANE_SKIP = "32bit-time"'
)
# Check license variables