summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-29 14:10:30 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:02 +0000
commit244f107c1f11bb74b5a489e4f24eac93706aa584 (patch)
tree1a7a619fe6ece0268ebc3b9f8dda0351b1b20429 /meta/classes/insane.bbclass
parented931d0314e4d1bb5230b266d2ec6d55dcb63df6 (diff)
downloadpoky-244f107c1f11bb74b5a489e4f24eac93706aa584.tar.gz
package: Create global package file list and use throughout PACKAGEFUNCS
Currently we do a signficant amount of tree traversal in many different places which in inefficient. We can assume that the files don't change and cache the file list which gives an efficiency improvement which this patch does using a global variable. (From OE-Core rev: 2d7608842d2dab07065e60aab729a5c8fd6b7907) (From OE-Core rev: 5c7c8347eb1bc25d194be6f4be142ba0924e2600) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 3693d42f4c..5dfa5aaec4 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -658,9 +658,7 @@ def package_qa_walk(path, warnfuncs, errorfuncs, skip, package, d):
658 658
659 warnings = [] 659 warnings = []
660 errors = [] 660 errors = []
661 for root, dirs, files in os.walk(path): 661 for path in pkgfiles[package]:
662 for file in files:
663 path = os.path.join(root,file)
664 elf = oe.qa.ELFFile(path) 662 elf = oe.qa.ELFFile(path)
665 try: 663 try:
666 elf.open() 664 elf.open()