lkml.org 
[lkml]   [2006]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] make: add modules_update target
Dustin Kirkland wrote:
> On Fri, 2006-04-14 at 21:00 +0300, Avi Kivity wrote:
>
>> How about using rsync with --delete as a substitute for cp (if rsync is
>> available)?
>>
>
> I thought about this, but a "grep -r rsync" didn't turn up any previous
> hits in the kernel build process. I didn't want to introduce this as a
> new dependency for kernel building, if it's possible to avoid...
>
Use rsync only if it is available:

rsync-available := $(shell rsync --version > /dev/null 2>&1 && echo y)
copy := $(if $(rsync-available), rsync --delete, cp)

modules_install:
[...]
$(copy) source target

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-14 21:05    [W:0.057 / U:1.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site