[Buildroot] [PATCH 1/9] external toolchain: slightly optimize the copy of the toolchain sysroot

Peter Korsgaard jacmet at uclibc.org
Sun Oct 9 22:00:56 UTC 2011


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

Hi,

 Thomas> @@ -89,7 +92,7 @@ copy_toolchain_sysroot = \
 Thomas>  	ARCH_SUBDIR="$(strip $3)"; \
 Thomas>  	for i in etc lib sbin usr ; do \
 Thomas>  		if [ -d $${ARCH_SYSROOT_DIR}/$$i ] ; then \
 Thomas> -			cp -a $${ARCH_SYSROOT_DIR}/$$i $(STAGING_DIR)/ ; \
 Thomas> +			rsync -au --exclude 'usr/lib/locale' $${ARCH_SYSROOT_DIR}/$$i $(STAGING_DIR)/ ; \

FYI, this breaks on readonly source directories unless you have the new
rsync 3.0.9, which most people don't. I haven't figured out a good fix
for older rsync versions yet.


-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list