All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] [PATCH] prepare-kernel: Only purge links from target directories
Date: Sun, 13 Jan 2013 12:17:37 +0100	[thread overview]
Message-ID: <50F297D1.2090800@web.de> (raw)
In-Reply-To: <50F19966.9050008@xenomai.org>

On 2013-01-12 18:12, Gilles Chanteperdrix wrote:
> On 01/09/2013 02:47 PM, Jan Kiszka wrote:
> 
>> Only remove files from the target directory of patch_link if they are
>> missing in Xenomai AND are actually symbolic links. This is required
>> when merging Xenomai directories into non-empty kernel dirs.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>
>> This is not required for the current patch workload but helps us in 2.6
>> with integrating ftrace (we patch into include/trace/events there).
>> Would reduce our queue length by one if this could be merged
>> nevertheless.
> 
> 
> Despite the fact that it is a one-liner, I do not understand what this
> patch does, and I am not sure it is not going to break things.

One way to install Xenomai into a kernel source tree is by adding
symbolic links to the individual source files. In preparation of this
step, the prepare-kernel script first purges all files from affected
directories that are not present in the Xenomai sources (anymore). That
works fine for our current Xenomai dirs as they are exclusively used but
fails once we have to patch dirs that are also used by the original
kernel (like the cited trace event dir).

This patch addresses the issue by only purging symbolic links, not
regular files. We will also need it in forge once we add ftrace support
over there.

HTH,
Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130113/ffd0ce13/attachment.pgp>

  reply	other threads:[~2013-01-13 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09 13:47 [Xenomai] [PATCH] prepare-kernel: Only purge links from target directories Jan Kiszka
2013-01-12 17:12 ` Gilles Chanteperdrix
2013-01-13 11:17   ` Jan Kiszka [this message]
2013-01-13 11:50     ` Gilles Chanteperdrix
2013-01-13 11:54       ` Jan Kiszka

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=50F297D1.2090800@web.de \
    --to=jan.kiszka@web.de \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.