From: Jim Cromie <jim.cromie@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links
Date: Sun, 07 May 2006 23:37:32 -0400 [thread overview]
Message-ID: <445EBCFC.2010604@domain.hid> (raw)
[-- 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
next reply other threads:[~2006-05-08 3:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 3:37 Jim Cromie [this message]
2006-05-08 15:54 ` [Xenomai-core] [patch] prepare-kernel shouldnt alter files thru links Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=445EBCFC.2010604@domain.hid \
--to=jim.cromie@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.