From: Stefan Kisdaroczi <kisda@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29
Date: Sat, 20 Jun 2009 13:25:58 +0200 [thread overview]
Message-ID: <4A3CC746.3040605@domain.hid> (raw)
Hi,
applying the xenomai kernelpatch created during debian package building
results to a corrupt init/Kconfig file and 'make menuconfig' fails. The
problem
starts with linux-2.6.29. reason: growing init/Kconfig file, see [1].
This patch [2] fixed it (tested with 2.6.28 and 2.6.29).
The second problem is unpatching the kernel:
Starting with 2.6.29 the Adoes-IPipe patches have a second hunk for
init/Kconfig
to remove the last line [3]. This hunk fails while reverse patching the
kernel. Its
conflicting with the generated Kconfig.frag-patch (see [2] too).
Removing the second init/Kconfig-Hunk from the adeos-patch [3] fixed it.
tested with 2.5-rc2, but please merge to xenomai-2.4.x too. thank you.
kisda
[1]
wc -l (unpatched sources from kernel.org)
764 ./linux-2.6.24.7/init/Kconfig
875 ./linux-2.6.25.20/init/Kconfig
925 ./linux-2.6.26.8/init/Kconfig
912 ./linux-2.6.27.25/init/Kconfig
937 ./linux-2.6.28.9/init/Kconfig
1067 ./linux-2.6.29.5/init/Kconfig
1156 ./linux-2.6.30.0/init/Kconfig
[2]
diff -uNrp xenomai-2.4.91.orig/debian/prepare-patch.sh
xenomai-2.4.91/debian/prepare-patch.sh
--- xenomai-2.4.91.orig/debian/prepare-patch.sh 2009-03-30
12:24:49.000000000 +0200
+++ xenomai-2.4.91/debian/prepare-patch.sh 2009-06-20
11:40:13.000000000 +0200
@@ -78,7 +78,7 @@ diff_addons() {
echo "--- linux/init/Kconfig 1970-01-01 01:00:00.000000000
+0100" >> $patch_file
echo "+++ linux-patched/init/Kconfig 2007-03-06
17:55:58.000000000 +0000" >> $patch_file
- echo "@@ -950,0 +950,$lines @@" >> $patch_file
+ echo "@@ -1400,0 +1400,$lines @@" >> $patch_file
sed -e "s,@LINUX_ARCH@,$linux_arch,g"
$xenomai_root/scripts/Kconfig.frag | sed 's/^/+/' >> $patch_file
echo " " >> $patch_file
}
[3]
diff --git a/init/Kconfig b/init/Kconfig
index 6a5c5fe..759609e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -73,6 +73,7 @@ config INIT_ENV_ARG_LIMIT
config LOCALVERSION
string "Local version - append to kernel release"
+ default "-ipipe"
help
Append an extra string to the end of your kernel version.
This will show up when you type uname, for example.
@@ -1064,4 +1065,3 @@ source "block/Kconfig"
config PREEMPT_NOTIFIERS
bool
-
next reply other threads:[~2009-06-20 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-20 11:25 Stefan Kisdaroczi [this message]
2009-06-20 14:35 ` [Xenomai-help] debian specific kernel patching/unpatching problems with 2.6.29 Gilles Chanteperdrix
2009-06-20 14:51 ` Stefan Kisdaroczi
2009-06-20 14:55 ` Gilles Chanteperdrix
2009-06-20 20:49 ` Stefan Kisdaroczi
2009-06-20 15:13 ` Philippe Gerum
2009-06-20 20:31 ` Stefan Kisdaroczi
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=4A3CC746.3040605@domain.hid \
--to=kisda@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.