toolchain: speed up sysroot lib copying
authorMike Frysinger <vapier@gentoo.org>
Sun, 9 Oct 2011 17:44:32 +0000 (19:44 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 10 Oct 2011 07:47:23 +0000 (09:47 +0200)
commitda6353c9e7e6e6accfe72ee4cb5165bdf580b18a
treecf44ef064718ab171474f31f9cbe1189ea24e68d
parent2e57043b4d1659b54cd5954ad98884e1a1c3848a
toolchain: speed up sysroot lib copying

The copy_toolchain_lib_root helper searches the entire sysroot, but is
only interested in files in certain subdirs.  So rather than waste time
in walking the entire tree, walk the few subdirs at the depth level we
are actually going to be poaching files from.

Some simplification suggested by Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> and Arnout Vandecappelle
<arnout@mind.be>, added by Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/helpers.mk