diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-06 22:53:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-08 14:20:18 +0000 |
| commit | 18f165c9e8e21a1e1acc148464f885adcdfeeb12 (patch) | |
| tree | 093317cabc8a6e29714f4dd2bc8562937c291588 /meta/lib/oe | |
| parent | 1dfdf2bb92270982682312e893f939e78ef7eb53 (diff) | |
| download | poky-18f165c9e8e21a1e1acc148464f885adcdfeeb12.tar.gz | |
insane.bbclass: use multiprocessing for collecting 'objdump -p' output
This was prompted by ltp's unreasonably long package_qa times; it has
a massive amount of executables and insane runs objdump for all of
them, serially.
This reduces the time from 4 minutes to 1m20s on my machine.
(From OE-Core rev: fac984b99fdb46949879516cb87153860f402c75)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
| -rw-r--r-- | meta/lib/oe/qa.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index efab7e8564..89acd3ead0 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py | |||
| @@ -48,6 +48,9 @@ class ELFFile: | |||
| 48 | return self | 48 | return self |
| 49 | 49 | ||
| 50 | def __exit__(self, exc_type, exc_value, traceback): | 50 | def __exit__(self, exc_type, exc_value, traceback): |
| 51 | self.close() | ||
| 52 | |||
| 53 | def close(self): | ||
| 51 | if self.data: | 54 | if self.data: |
| 52 | self.data.close() | 55 | self.data.close() |
| 53 | 56 | ||
| @@ -128,6 +131,9 @@ class ELFFile: | |||
| 128 | """ | 131 | """ |
| 129 | return self.getShort(ELFFile.E_MACHINE) | 132 | return self.getShort(ELFFile.E_MACHINE) |
| 130 | 133 | ||
| 134 | def set_objdump(self, cmd, output): | ||
| 135 | self.objdump_output[cmd] = output | ||
| 136 | |||
| 131 | def run_objdump(self, cmd, d): | 137 | def run_objdump(self, cmd, d): |
| 132 | import bb.process | 138 | import bb.process |
| 133 | import sys | 139 | import sys |
