All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jim Cromie <jim.cromie@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [patch] tweak scripts/prepare-kernel.sh to work with	O=../linux-output
Date: Sat, 11 Feb 2006 18:19:27 +0100	[thread overview]
Message-ID: <43EE1C9F.9070202@domain.hid> (raw)
In-Reply-To: <43E87C56.8040100@domain.hid>

Jim Cromie wrote:
> hi folks,
> 
> with this patch, you can run prepare-kernel.sh on a kernel output tree,
> at least once that tree contains the Makefile that the script looks for.
> 

Applied, thanks.

> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: scripts/prepare-kernel.sh
> ===================================================================
> --- scripts/prepare-kernel.sh	(revision 550)
> +++ scripts/prepare-kernel.sh	(working copy)
> @@ -74,13 +74,14 @@
>  done
>  
>  linux_tree=`cd $linux_tree && pwd`
> +linux_out=$linux_tree
>  
>  if test \! -r $linux_tree/Makefile; then
>     echo "$me: $linux_tree is not a valid Linux kernel tree"
>     exit 2
>  fi
>  
> -# Infere the default architecture if unspecified.
> +# Infer the default architecture if unspecified.
>  
>  if test x$linux_arch = x; then
>     build_arch=`$xenomai_root/config/config.guess`
> @@ -144,6 +145,12 @@
>     linux_arch=blackfin
>  fi
>  
> +foo=`grep '^KERNELSRC    := ' $linux_tree/Makefile | cut -d= -f2`
> +if [ ! -z $foo ] ; then
> +    linux_tree=$foo
> +fi
> +unset foo
> +
>  eval linux_`grep '^EXTRAVERSION =' $linux_tree/Makefile | sed -e 's, ,,g'`
>  eval linux_`grep '^PATCHLEVEL =' $linux_tree/Makefile | sed -e 's, ,,g'`
>  eval linux_`grep '^SUBLEVEL =' $linux_tree/Makefile | sed -e 's, ,,g'`
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


      reply	other threads:[~2006-02-11 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 10:54 [Xenomai-core] [patch] tweak scripts/prepare-kernel.sh to work with O=../linux-output Jim Cromie
2006-02-11 17:19 ` Philippe Gerum [this message]

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=43EE1C9F.9070202@domain.hid \
    --to=rpm@xenomai.org \
    --cc=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.