[oe] [PATCH v2 2/2] external-toolchain-csl: allow linux-libc-headers

Phil Blundell philb at gnu.org
Wed Mar 2 17:50:33 UTC 2011


On Wed, 2011-03-02 at 10:05 -0500, Ben Gardiner wrote:
> -	cp -a ${TOOLCHAIN_PATH}/${TARGET_SYS}/libc/usr/include/* ${STAGING_INCDIR}
> +	rsync -a ${RSYNC_OPTS} ${TOOLCHAIN_PATH}/${TARGET_SYS}/libc/usr/include/* ${STAGING_INCDIR}

If you want to exclude some files then it's probably better to use
something like tar --exclude ... -cf - | tar -xf -.  (I think the
--exclude option is in POSIX so any reasonable version of tar ought to
have it.)  Or you could use some sort of "find | grep -v .. | xargs cp"
construct to make a list of the files that you do want to copy.  Either
of those is probably a better option than rsync.

p.






More information about the Openembedded-devel mailing list