diff options
-rw-r--r-- | meta/classes-global/insane.bbclass | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 401807b2be..b165f111ce 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -763,10 +763,6 @@ def qa_check_staged(path,d): | |||
763 | if not skip_shebang_size: | 763 | if not skip_shebang_size: |
764 | package_qa_check_shebang_size(path, "", d, None) | 764 | package_qa_check_shebang_size(path, "", d, None) |
765 | 765 | ||
766 | def prepopulate_objdump_p(elf, d): | ||
767 | output = elf.run_objdump("-p", d) | ||
768 | return (elf.name, output) | ||
769 | |||
770 | # Walk over all files in a directory and call func | 766 | # Walk over all files in a directory and call func |
771 | def package_qa_walk(checkfuncs, package, d): | 767 | def package_qa_walk(checkfuncs, package, d): |
772 | elves = {} | 768 | elves = {} |
@@ -782,17 +778,22 @@ def package_qa_walk(checkfuncs, package, d): | |||
782 | if elf: | 778 | if elf: |
783 | elves[path] = elf | 779 | elves[path] = elf |
784 | 780 | ||
781 | def prepopulate_objdump_p(elf, d): | ||
782 | output = elf.run_objdump("-p", d) | ||
783 | return (elf.name, output) | ||
784 | |||
785 | results = oe.utils.multiprocess_launch(prepopulate_objdump_p, elves.values(), d, extraargs=(d,)) | 785 | results = oe.utils.multiprocess_launch(prepopulate_objdump_p, elves.values(), d, extraargs=(d,)) |
786 | for item in results: | 786 | for item in results: |
787 | elves[item[0]].set_objdump("-p", item[1]) | 787 | elves[item[0]].set_objdump("-p", item[1]) |
788 | 788 | ||
789 | for path in pkgfiles[package]: | 789 | for path in pkgfiles[package]: |
790 | if path in elves: | 790 | elf = elves.get(path) |
791 | elves[path].open() | 791 | if elf: |
792 | for func in checkfuncs: | 792 | elf.open() |
793 | func(path, package, d, elves.get(path)) | 793 | for func in checkfuncs: |
794 | if path in elves: | 794 | func(path, package, d, elf) |
795 | elves[path].close() | 795 | if elf: |
796 | elf.close() | ||
796 | 797 | ||
797 | def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | 798 | def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): |
798 | # Don't do this check for kernel/module recipes, there aren't too many debug/development | 799 | # Don't do this check for kernel/module recipes, there aren't too many debug/development |