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

git at git.openembedded.org git at git.openembedded.org
Wed Feb 6 13:14:52 UTC 2013


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

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=0cd295d8cdc8cc39d6b6c7d26ea8a2a10a979d7c




More information about the Openembedded-commits mailing list