Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain: speed up sysroot lib copying
@ 2010-12-12 16:25 Mike Frysinger
  2010-12-13 21:26 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mike Frysinger @ 2010-12-12 16:25 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 toolchain/helpers.mk |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index 05d43e7..674e7b4 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -24,7 +24,10 @@ copy_toolchain_lib_root = \
 	STRIP="$(strip $4)"; \
  \
 	LIBS=`(cd $${ARCH_SYSROOT_DIR}; \
-		find -L . -path "./lib/$${LIB}.*"     -o \
+		find -L \
+			  ./lib/ ./usr/lib/ ./usr/$(TOOLCHAIN_EXTERNAL_PREFIX)/lib*/ \
+			  -maxdepth 1 \
+			  -path "./lib/$${LIB}.*"     -o \
 			  -path "./usr/lib/$${LIB}.*" -o \
 			  -path "./usr/$(TOOLCHAIN_EXTERNAL_PREFIX)/lib*/$${LIB}.*" \
 		)` ; \
-- 
1.7.3.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-14 20:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12 16:25 [Buildroot] [PATCH] toolchain: speed up sysroot lib copying Mike Frysinger
2010-12-13 21:26 ` Thomas Petazzoni
2010-12-13 22:10   ` Mike Frysinger
2010-12-13 22:23 ` Lionel Landwerlin
2010-12-13 23:13   ` Mike Frysinger
2010-12-14 20:59 ` [Buildroot] [PATCH v2] " Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox