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.
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core