* [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links
@ 2006-05-08 3:37 Jim Cromie
2006-05-08 15:54 ` Philippe Gerum
0 siblings, 1 reply; 2+ messages in thread
From: Jim Cromie @ 2006-05-08 3:37 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
attached patch corrects a mistake in rev 985, which chmod'd a read-only
file,
even if it was a symlink from a kernel-tree cloned with lndir.
This resulted in a bad original tree for use in building vanilla kernels.
with patch, script renames the symlink, copies it to the expected name,
and *then* chmods it, and appends to it. Now vanilla kernel builds also
using same tree re-make w/o actually recompiling anything.
[-- Attachment #2: patch-prep-kernel --]
[-- Type: text/plain, Size: 516 bytes --]
Index: scripts/prepare-kernel.sh
===================================================================
--- scripts/prepare-kernel.sh (revision 1029)
+++ scripts/prepare-kernel.sh (working copy)
@@ -48,6 +48,10 @@
patch_append() {
file="$1"
if test "x$output_patch" = "x"; then
+ if test -L "$linux_tree/$file" ; then
+ mv "$linux_tree/$file" "$linux_tree/$file.orig"
+ cp "$linux_tree/$file.orig" "$linux_tree/$file"
+ fi
chmod +w "$linux_tree/$file"
cat >> "$linux_tree/$file"
else
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links
2006-05-08 3:37 [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links Jim Cromie
@ 2006-05-08 15:54 ` Philippe Gerum
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-05-08 15:54 UTC (permalink / raw)
To: Jim Cromie; +Cc: xenomai-core
Jim Cromie wrote:
>
> attached patch corrects a mistake in rev 985, which chmod'd a read-only
> file,
> even if it was a symlink from a kernel-tree cloned with lndir.
> This resulted in a bad original tree for use in building vanilla kernels.
>
> with patch, script renames the symlink, copies it to the expected name,
> and *then* chmods it, and appends to it. Now vanilla kernel builds also
> using same tree re-make w/o actually recompiling anything.
>
Sounds reasonable. Applied, thanks.
--
Philippe.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-08 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-08 3:37 [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links Jim Cromie
2006-05-08 15:54 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.