[oe-commits] Richard Purdie : package.bbclass: Rewrite split_and_strip_files
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 3 23:46:35 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 11d3a4a06b141fc8b085baddb2195879fa7b8a03
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=11d3a4a06b141fc8b085baddb2195879fa7b8a03
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sun Feb 3 17:11:58 2013 +0000
package.bbclass: Rewrite split_and_strip_files
The split_and_strip_files funciton was hard to follow and its usage of prefixes
to strings was unusual. This rewrites it to use a list of hardlinks, symlinks and
elffiles where each list is iterated over at the correct point.
This means we can avoid creating dandling symlinks for example so we can simply
delete the cleanup code for this.
The isfile() check is also removed which gives a significant improvement in speed.
Its uneeded since os.walk will have already checked things in files are files.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/package.bbclass | 205 ++++++++++++++++++++----------------------
1 files changed, 97 insertions(+), 108 deletions(-)
Diff: http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=11d3a4a06b141fc8b085baddb2195879fa7b8a03
More information about the Openembedded-commits
mailing list