insane.bbclass: Optimisation to speed up the package qa phase
authorHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 18 Nov 2008 13:37:33 +0000 (14:37 +0100)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 18 Nov 2008 13:47:59 +0000 (14:47 +0100)
commitfa5a0ecc4f21152b13a864aa865c197fa8ad9ba9
treeaeb7d4a9a89dfa11ebfc18d34987f148f0a2347b
parentb5b4bb98ef12e9872145bb5cc0515365f511a880
insane.bbclass: Optimisation to speed up the package qa phase

    If you have a package with many data files (like xserver-xorg-print)
    the overhead of forking and executing scanelf/objdump on these files
    is way too high.

    Change the code to open the file and check if it is an elf file.
    Pass the result to the checking functions. If we do not have an elf
    file in front of us do not execute scanelf/objdump.

    This is a speed increase, it still detects GNU hash, the other parts
    should continue to work as well but needs some verificiation.
classes/insane.bbclass