From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45B858EE.60301@domain.hid> Date: Thu, 25 Jan 2007 08:14:54 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 Subject: Re: [Xenomai-help] Patching latest Denx 2.4.25-devel kernel with xenomai-2.3.0 fails References: <45B7D0A7.3070904@domain.hid> In-Reply-To: <45B7D0A7.3070904@domain.hid> Content-Type: multipart/mixed; boundary="------------020108080306040207020806" List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Xenomai help This is a multi-part message in MIME format. --------------020108080306040207020806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 < /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. --------------020108080306040207020806 Content-Type: text/x-patch; name="xenomai-ed-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xenomai-ed-fix.patch" + 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 <