[oe-commits] Richard Purdie : package.bbclass: Rewrite split_and_strip_files

git at git.openembedded.org git at git.openembedded.org
Tue Feb 5 21:38:16 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 7f6a416a54fe67432f5b20d9934582d100218300
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7f6a416a54fe67432f5b20d9934582d100218300

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 |  202 ++++++++++++++++++++----------------------
 1 files changed, 97 insertions(+), 105 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=7f6a416a54fe67432f5b20d9934582d100218300




More information about the Openembedded-commits mailing list