All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [rfc] Building Linux kernel in Xenomai tree.
Date: Sun, 08 Jan 2006 20:23:39 +0100	[thread overview]
Message-ID: <43C166BB.4030606@domain.hid> (raw)
In-Reply-To: <17345.17403.927352.223271@domain.hid>

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>  > Gilles Chanteperdrix wrote:
>  > > The current approach is to use the sources of the running kernel if the
>  > > only option specified is --enable-linux-build. Do you mean you find this
>  > > feature superfluous ?
>  > > 
>  > 
>  > If $enableval is "y", then no path has been specified, so you can 
>  > default to the running kernel in such a case.
> 
> Here is a third version of the patch, where :
> * the --enable-sim option is removed
> * the --with-linux-srcdir option is removed
> * the CC variable is passed to kernel build system
> * prepare-kernel.sh no longer removes target directories before
>   creating symbolic links.
> 
> 

This is needed for creating links in a new kernel for the fist time:

--- scripts/prepare-kernel.sh~  2006-01-08 20:14:05.000000000 +0100
+++ scripts/prepare-kernel.sh   2006-01-08 20:19:41.000000000 +0100
@@ -2,11 +2,12 @@
  set -e

  do_links() {
-    ( cd $2 &&
+    ( if test -x $2; then
+      cd $2 &&
        find . \( -name Makefile -o -name $config_file -o -name '*.[chS]' \) |
        while read f; do
          if test ! -e $1/$f; then rm -f $f; fi
-      done &&
+      done; else true; fi &&
        cd $1 &&
        find . \( -name Makefile -o -name $config_file -o -name '*.[chS]' \) |
        while read f; do


-- 

Philippe.


  reply	other threads:[~2006-01-08 19:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-07 11:30 [Xenomai-core] [rfc] Building Linux kernel in Xenomai tree Gilles Chanteperdrix
2006-01-07 18:04 ` Gilles Chanteperdrix
2006-01-07 18:38   ` Jan Kiszka
2006-01-07 19:32     ` Gilles Chanteperdrix
2006-01-07 19:58       ` Jan Kiszka
2006-01-07 21:24         ` Gilles Chanteperdrix
2006-01-08 12:08 ` Philippe Gerum
2006-01-08 13:08   ` Gilles Chanteperdrix
2006-01-08 14:17     ` Philippe Gerum
2006-01-08 16:55       ` Gilles Chanteperdrix
2006-01-08 19:23         ` Philippe Gerum [this message]
2006-01-08 20:22           ` Gilles Chanteperdrix
2006-01-08 21:39             ` 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=43C166BB.4030606@domain.hid \
    --to=rpm@xenomai.org \
    --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.