]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
insane: tidy up objdump preloading in package_qa_walk()
authorRoss Burton <ross.burton@arm.com>
Thu, 10 Oct 2024 16:06:19 +0000 (17:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Oct 2024 11:16:59 +0000 (12:16 +0100)
commitcda3647b32703f43c4fe2af3bab977e5698633f6
tree578e7076dc824dd7be9caa71bc814fcdad4d0156
parentd6c5076d179a3d5ebb74b719ec4d523c197c1918
insane: tidy up objdump preloading in package_qa_walk()

Move the prepopulate function out of global scope, and access the
dictionary once instead of repeatedly.

This still results in each ELF being opened twice, but this avoids
opening all of the files at once and the ELFFile.open() call is fairly
fast.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass