From 327f06e2d709eb9f763245ccd38161f6d62c237d Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 28 Apr 2023 10:43:52 +0200 Subject: insane.bbclass: enable 32 bit time API check (as a warning) on affected architectures (From OE-Core rev: ae9936ab37d34196891570b2f91a299808c95d25) Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes-global/insane.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/classes-global/insane.bbclass') diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index a4dbc9a123..114781c780 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -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 -- cgit v1.2.3-54-g00ecf