diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-04-28 10:43:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-27 15:26:31 +0100 |
commit | 327f06e2d709eb9f763245ccd38161f6d62c237d (patch) | |
tree | 534c28d466964066e9bec68c014f44dc36e414d8 /meta/classes-global | |
parent | 231866f75c8e162b123a5d6fd9acaaa396df918f (diff) | |
download | poky-327f06e2d709eb9f763245ccd38161f6d62c237d.tar.gz |
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>
Diffstat (limited to 'meta/classes-global')
-rw-r--r-- | meta/classes-global/insane.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
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 \ | |||
34 | missing-update-alternatives native-last missing-ptest \ | 34 | missing-update-alternatives native-last missing-ptest \ |
35 | license-exists license-no-generic license-syntax license-format \ | 35 | license-exists license-no-generic license-syntax license-format \ |
36 | license-incompatible license-file-missing obsolete-license \ | 36 | license-incompatible license-file-missing obsolete-license \ |
37 | 32bit-time \ | ||
37 | " | 38 | " |
38 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ | 39 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ |
39 | perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ | 40 | perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ |
@@ -513,6 +514,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages): | |||
513 | """ | 514 | """ |
514 | Check that ELF files do not use any 32 bit time APIs from glibc. | 515 | Check that ELF files do not use any 32 bit time APIs from glibc. |
515 | """ | 516 | """ |
517 | thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86')) | ||
518 | overrides = set(d.getVar('OVERRIDES').split(':')) | ||
519 | if not(thirtytwo_bit_time_archs & overrides): | ||
520 | return | ||
521 | |||
516 | import re | 522 | import re |
517 | # This list is manually constructed by searching the image folder of the | 523 | # This list is manually constructed by searching the image folder of the |
518 | # glibc recipe for __USE_TIME_BITS64. There is no good way to do this | 524 | # glibc recipe for __USE_TIME_BITS64. There is no good way to do this |