From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] Xenomai configuration help for Linux 2.4
Date: Tue, 14 Nov 2006 20:42:21 +0100 [thread overview]
Message-ID: <455A1C1D.6060801@domain.hid> (raw)
In-Reply-To: <4555DFBE.4050609@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
Jan Kiszka wrote:
> Wolfgang Grandegger wrote:
>> Hello,
>>
>> the attached patch adds Xenomai configuration help for Linux 2.4:
>
> Cool that you picked this up! Frankly, I didn't expect that this would
> really work without any pitfalls - but it seems to.
>
> Just one addition feature wish: Could you enhance it so that it can also
> upgrade an existing Configure.help patch? Maybe put some magic marks
> (comments) around the xeno stuff and remove the whole block before
> re-patching the help information?
I think the attached patch does what you want (using sed).
Wolfgang
>
> Thanks,
> Jan (who wishes that this would also work for Kconfig->Config.in...)
>
[-- Attachment #2: xenomai-help-from-kconfig2.patch --]
[-- Type: text/x-patch, Size: 1398 bytes --]
Index: scripts/prepare-kernel.sh
===================================================================
--- scripts/prepare-kernel.sh (revision 1835)
+++ scripts/prepare-kernel.sh (working copy)
@@ -132,17 +132,27 @@
patch_help() {
if which perl > /dev/null; then
hfile=$linux_tree/Documentation/Configure.help
- if ! grep -iq CONFIG_XENO $hfile; then
- kfiles=$xenomai_root/scripts/Kconfig.frag
- for d in ksrc/nucleus ksrc/skins ksrc/arch/$xenomai_arch \
- ksrc/drivers sim; do
- kfiles="$kfiles `find $xenomai_root/$d -name Kconfig`"
- done
- perl $xenomai_root/scripts/help_from_kconfig.pl $kfiles >> $hfile
- if test x$verbose = x1; then
- echo 'Configuration help added.'
- fi
+ if grep -iq "XENOMAI PARAMETERS" $hfile; then
+ tmp=$hfile.tmp
+ sed -n -e \
+ '/# BEGIN XENOMAI PARAMETERS/,/# END XENOMAI PARAMETERS/!p' \
+ $hfile > $tmp
+ mv $tmp $hfile
+ msg="updated"
+ else
+ msg="added"
fi
+ kfiles=$xenomai_root/scripts/Kconfig.frag
+ for d in ksrc/nucleus ksrc/skins ksrc/arch/$xenomai_arch \
+ ksrc/drivers sim; do
+ kfiles="$kfiles `find $xenomai_root/$d -name Kconfig`"
+ done
+ echo "# BEGIN XENOMAI PARAMETERS" >> $hfile
+ perl $xenomai_root/scripts/help_from_kconfig.pl $kfiles >> $hfile
+ echo "# END XENOMAI PARAMETERS" >> $hfile
+ if test x$verbose = x1; then
+ echo "Configuration help $msg."
+ fi
fi
}
next prev parent reply other threads:[~2006-11-14 19:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-11 12:43 [Xenomai-core] [PATCH] Xenomai configuration help for Linux 2.4 Wolfgang Grandegger
2006-11-11 14:35 ` Jan Kiszka
2006-11-11 19:11 ` Wolfgang Grandegger
2006-11-14 19:42 ` Wolfgang Grandegger [this message]
2006-11-11 16:34 ` 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=455A1C1D.6060801@domain.hid \
--to=wg@domain.hid \
--cc=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.