insane.bbclass: enable 32 bit time API check (as a warning) on affected architectures

(From OE-Core rev: ae9936ab37d34196891570b2f91a299808c95d25)

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:52 +02:00
committed by Richard Purdie
parent 231866f75c
commit 327f06e2d7

View File

@@ -34,6 +34,7 @@ WARN_QA ?= " libdir xorg-driver-abi buildpaths \
missing-update-alternatives native-last missing-ptest \
license-exists license-no-generic license-syntax license-format \
license-incompatible license-file-missing obsolete-license \
32bit-time \
"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
@@ -513,6 +514,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages):
"""
Check that ELF files do not use any 32 bit time APIs from glibc.
"""
thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86'))
overrides = set(d.getVar('OVERRIDES').split(':'))
if not(thirtytwo_bit_time_archs & overrides):
return
import re
# This list is manually constructed by searching the image folder of the
# glibc recipe for __USE_TIME_BITS64. There is no good way to do this