Jan Kiszka wrote:
Wolfgang Grandegger wrote:
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).
Jan (who wishes that this would also work for Kconfig->Config.in...)
--- scripts/prepare-kernel.sh (revision 1835)
+++ scripts/prepare-kernel.sh (working copy)
@@ -132,17 +132,27 @@
if which perl > /dev/null; then
- if ! grep -iq CONFIG_XENO $hfile; then
- for d in ksrc/nucleus ksrc/skins ksrc/arch/$xenomai_arch \
- ksrc/drivers sim; do
- kfiles="$kfiles `find $xenomai_root/$d -name Kconfig`"
- perl $xenomai_root/scripts/help_from_kconfig.pl $kfiles >> $hfile
- if test x$verbose = x1; then
- echo 'Configuration help added.'
+ if grep -iq "XENOMAI PARAMETERS" $hfile; then
+ sed -n -e \
+ '/# BEGIN XENOMAI PARAMETERS/,/# END XENOMAI PARAMETERS/!p' \
+ $hfile > $tmp
+ mv $tmp $hfile
+ for d in ksrc/nucleus ksrc/skins ksrc/arch/$xenomai_arch \
+ ksrc/drivers sim; do
+ kfiles="$kfiles `find $xenomai_root/$d -name Kconfig`"
+ 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."
Xenomai-core mailing list