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

git at git.openembedded.org git at git.openembedded.org
Mon Feb 4 16:43:44 UTC 2013


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

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=aaed6c97fabc4724e57d3be9f2ce9bd9c0d1c560




More information about the Openembedded-commits mailing list