diff options
author | Ola x Nilsson <olani@axis.com> | 2024-01-12 16:14:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-15 21:42:15 +0000 |
commit | fc2d534e38a75a99396e63bf374f92167d6331dc (patch) | |
tree | 111e8284d52875b2d6e156763d715524b76a6ba4 /meta | |
parent | ad3eb83b56fd9adc96bfc000f589eb95bc35bcaf (diff) | |
download | poky-fc2d534e38a75a99396e63bf374f92167d6331dc.tar.gz |
insane.bbclass: Python code cleanup in check_32bit_symbols
(From OE-Core rev: 67b06035326048323f972107f66eb50cf74def0b)
Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes-global/insane.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index f6c947dafb..ec76f9a5e3 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -514,9 +514,9 @@ def check_32bit_symbols(path, packagename, d, elf, messages): | |||
514 | """ | 514 | """ |
515 | 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. |
516 | """ | 516 | """ |
517 | thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86')) | 517 | thirtytwo_bit_time_archs = {'arm','armeb','mipsarcho32','powerpc','x86'} |
518 | overrides = set(d.getVar('OVERRIDES').split(':')) | 518 | overrides = set(d.getVar('OVERRIDES').split(':')) |
519 | if not(thirtytwo_bit_time_archs & overrides): | 519 | if not (thirtytwo_bit_time_archs & overrides): |
520 | return | 520 | return |
521 | 521 | ||
522 | import re | 522 | import re |
@@ -1571,7 +1571,7 @@ do_unpack[postfuncs] += "do_qa_unpack" | |||
1571 | 1571 | ||
1572 | python () { | 1572 | python () { |
1573 | import re | 1573 | import re |
1574 | 1574 | ||
1575 | tests = d.getVar('ALL_QA').split() | 1575 | tests = d.getVar('ALL_QA').split() |
1576 | if "desktop" in tests: | 1576 | if "desktop" in tests: |
1577 | d.appendVar("PACKAGE_DEPENDS", " desktop-file-utils-native") | 1577 | d.appendVar("PACKAGE_DEPENDS", " desktop-file-utils-native") |