From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH 2/2] run prepare-kernel on defaults
Date: Fri, 22 Jun 2007 17:43:14 +0200 [thread overview]
Message-ID: <467BEE12.3090609@domain.hid> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 253 bytes --]
This helps to run prepare-kernel with less explicit switches from
automatic build scripts. It adds the "--default" parameter which
virtually presses <enter> when the user used to be asked for some decision.
Would be nice to have in 2.3.x as well.
[-- Attachment #1.2: run-default-preparation.patch --]
[-- Type: text/plain, Size: 2146 bytes --]
Index: xenomai/scripts/prepare-kernel.sh
===================================================================
--- xenomai.orig/scripts/prepare-kernel.sh
+++ xenomai/scripts/prepare-kernel.sh
@@ -168,7 +168,7 @@ generate_patch() {
}
-usage='usage: prepare-kernel --linux=<linux-tree> --adeos=<adeos-patch> [--arch=<arch>] [--outpatch=<file> <tempdir> [--filterkvers=y|n] [--filterarch=y|n]] [--forcelink]'
+usage='usage: prepare-kernel --linux=<linux-tree> --adeos=<adeos-patch> [--arch=<arch>] [--outpatch=<file> <tempdir> [--filterkvers=y|n] [--filterarch=y|n]] [--forcelink] [--default] [--verbose]'
me=`basename $0`
while test $# -gt 0; do
@@ -198,6 +198,9 @@ while test $# -gt 0; do
--forcelink)
forcelink=1
;;
+ --default)
+ usedefault=1
+ ;;
--verbose)
verbose=1
;;
@@ -226,8 +229,10 @@ xenomai_root=`cd $xenomai_root && pwd`
default_linux_tree=/lib/modules/`uname -r`/source
while test x$linux_tree = x; do
- echo -n "Linux tree [default $default_linux_tree]: "
- read linux_tree
+ if test x$usedefault = x; then
+ echo -n "Linux tree [default $default_linux_tree]: "
+ read linux_tree
+ fi
if test x$linux_tree = x; then
linux_tree=$default_linux_tree
fi
@@ -274,8 +279,10 @@ fi
while : ; do
if test x$linux_arch = x; then
- echo -n "Target architecture [default $default_linux_arch]: "
- read linux_arch
+ if test x$usedefault = x; then
+ echo -n "Target architecture [default $default_linux_arch]: "
+ read linux_arch
+ fi
if test x$linux_arch = x; then
linux_arch=$default_linux_arch
fi
@@ -363,8 +370,10 @@ else
default_adeos_patch=/dev/null
fi
while test x$adeos_patch = x; do
- echo -n "Adeos patch [default $default_adeos_patch]: "
- read adeos_patch
+ if test x$usedefault = x; then
+ echo -n "Adeos patch [default $default_adeos_patch]: "
+ read adeos_patch
+ fi
if test x$adeos_patch = x; then
adeos_patch=$default_adeos_patch
fi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
reply other threads:[~2007-06-22 15:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=467BEE12.3090609@domain.hid \
--to=jan.kiszka@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.