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

Ben Gardiner bengardiner at nanometrics.ca
Wed Mar 2 17:53:57 UTC 2011


Hi Phil,

On Wed, Mar 2, 2011 at 12:50 PM, Phil Blundell <philb at gnu.org> wrote:
> 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.

Thanks for the alternatives.

I think the piped-tars option is pretty cool, it's alot like the
netcat-tar trick for when you don't have rsync handy, just no netcat.
:)

I will definitely keep that in mind for future tasks.

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca




More information about the Openembedded-devel mailing list