All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Patching latest Denx 2.4.25-devel kernel with xenomai-2.3.0 fails
Date: Thu, 25 Jan 2007 08:14:54 +0100	[thread overview]
Message-ID: <45B858EE.60301@domain.hid> (raw)
In-Reply-To: <45B7D0A7.3070904@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

Wolfgang Grandegger wrote:
> Daniel Schnell wrote:
>> Wolfgang Grandegger wrote:
>>
>>> I unable to reproduce your problem with a fresh linuxppc_2_4_devel
>>> tree and xenomai-2.3.0. Could you please use the "--verbose" option
>>> with prepare_kernel.sh and post the result.  
>>
>>
>> Hmm, I used
>>
>> make mrproper; git pull
>>
>> to get the latest deltas from the repository. But maybe there is a saner
>> way to do it ? I am pulling a fresh tree at the moment, but this will
>> take quite a while according to the progress bar.
>>
>> The output from the skript is
>>
>> Preparing kernel 2.4.25 in
>> /home/daniel/projects/mach4/linuxppc_2_4_devel-git-xenomai-2.3.0...
>> Adeos found - bypassing patch.
>> Adeos/ppc 1.2-01 installed.
>>
>> And ? Is printed out on stderr.
>>
>>
>> In the meanwhile I got the fresh linux kernel, the same happensn here.
>>
>> I pulled it via
>>
>> git clone git://www.denx.de/git/linuxppc_2_4_devel.git
>> linuxppc_2_4_devel-git-xenomai-2.3.0
> 
> The problem is with the attached code snippet. It works under FC4 but 
> not under FC6, as I just realized. Still puzzled...
> 
> Wolfgang.
> 
> 
> ------------------------------------------------------------------------
> 
> #!/bin/bash
> ed -s Makefile <<EOF
> /DRIVERS := \$(DRIVERS-y)
> ^r Modules.frag
> 
> .
> wq
> EOF
> 
> 
> ------------------------------------------------------------------------

The attached patch fixes the problem by replacing "^" with "-1" for 
"previous line". It works now with FC4 and FC6. Likely it's an 
incompatibility issue between ed-0.2-3 ed-0.3-0.fc6.

Wolfgang.


[-- Attachment #2: xenomai-ed-fix.patch --]
[-- Type: text/x-patch, Size: 474 bytes --]

+ diff -u xenomai-2.3.0/scripts/prepare-kernel.sh.ED xenomai-2.3.0/scripts/prepare-kernel.sh
--- xenomai-2.3.0/scripts/prepare-kernel.sh.ED	2007-01-24 21:45:24.000000000 +0100
+++ xenomai-2.3.0/scripts/prepare-kernel.sh	2007-01-24 23:13:46.000000000 +0100
@@ -443,7 +443,7 @@
     if ! grep -q CONFIG_XENO $linux_tree/Makefile; then
 	patch_ed Makefile <<EOF
 /DRIVERS := \$(DRIVERS-y)
-^r $xenomai_root/scripts/Modules.frag
+-1r $xenomai_root/scripts/Modules.frag
 
 .
 wq

  reply	other threads:[~2007-01-25  7:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-23 20:48 [Xenomai-help] isolating unwanted mode switch Jeff Weber
2007-01-23 21:45 ` Dmitry Adamushko
2007-01-23 22:27   ` Jeff Weber
2007-01-24 10:08     ` Dmitry Adamushko
2007-01-24 11:22       ` [Xenomai-help] Patching latest Denx 2.4.25-devel kernel with xenomai-2.3.0 fails Daniel Schnell
2007-01-24 14:44         ` Wolfgang Grandegger
2007-01-24 17:04           ` Daniel Schnell
2007-01-24 21:33             ` Wolfgang Grandegger
2007-01-25  7:14               ` Wolfgang Grandegger [this message]
2007-01-25  9:03                 ` Daniel Schnell
2007-01-25  9:38                   ` Wolfgang Grandegger
2007-01-29 15:36                 ` Philippe Gerum
2007-01-24 17:52       ` [Xenomai-help] isolating unwanted mode switch Jeff Weber
2007-01-24 18:55         ` Eric Noulard
2007-01-25  7:30           ` M. Koehrer
2007-01-25  8:24             ` Eric Noulard
2007-01-25 10:50         ` Philippe Gerum
2007-01-25 17:04           ` Jeff Weber

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=45B858EE.60301@domain.hid \
    --to=wg@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.