All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stefan Kisdaroczi <kisda@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system
Date: Thu, 19 Aug 2010 17:28:31 +0200	[thread overview]
Message-ID: <4C6D4D9F.2060200@domain.hid> (raw)
In-Reply-To: <4C6D4C01.2010402@domain.hid>

Stefan Kisdaroczi wrote:
> On 18.08.2010 11:06, Gilles Chanteperdrix wrote:
>> Paul wrote:
>>   
>>> On Wednesday 18 August 2010, Gilles Chanteperdrix wrote:
>>>     
>>>> Stefan Kisdaroczi wrote:
>>>>       
>>>>> On 17.08.2010 15:51, Hemal C.Bavishi wrote:
>>>>>         
>>>>>> When I tried to compile it with the latest version of kernel with
>>>>>> xenomai 2.5.4, I am getting following errors in Xenomai (disable
>>>>>> CONFIG_SMP, enable CONFIG_X86_UP_APIC and CONFIG_X86_UP_IOAPIC
>>>>>> (*).)
>>>>>>           
>>>>> Just tested, got the same build error with 2.6.34.
>>>>> If I patch 2.6.34 with prepare-kernel [1] it compiles,
>>>>> if I use the debian packaged patch generated with prepare-patch [2]
>>>>> it fails.
>>>>>
>>>>> I guess a fix is needed in prepare-patch for 2.6.34, but no time to
>>>>> look closer now.
>>>>>
>>>>> Stefan
>>>>>
>>>>> [1] xenomai-2.5.4/scripts/prepare-kernel.sh
>>>>> [2] xenomai-2.5.4/debian/prepare-patch.sh
>>>>>         
>>>> prepare-kernel.sh has a "--outpatch" option, which seems to be able
>>>> to generate patches, so, would not it be possible to modify
>>>> prepare-patch to simply call prepare-kernel.sh with the --outpatch
>>>> option?
>>>>
>>>> This way, we will not have to duplicate into prepare-patch.sh the
>>>> modifications we make to prepare-kernel.sh.
>>>>       
>>> The debian/prepare-patch.sh does not require a kernel source tree and 
>>> generates patches for multiple kernels & arches - It is a fudge, but it 
>>> works for the most part and does not impose dependencies of multiple 
>>> kernel source trees on package build systems.
>>>     
>> Ok. Understood. The thing is that prepare-patch.sh is broken, so now may
>> be a good occasion to merge its functionality in prepare-kernel.sh, so
>> that we do not duplicate the code in these two really non-trivial scripts.
>>   
> 
> Hi Gilles,
> 
> There is another copy. The debian/ directory from the xenomai tree is
> not used for debian packages at debian.org. The Debian Maintainer Roland
> Stigge has his own debian/ directory.

Yes, I know that. And this makes me wonder how Roland generated the
patches for 2.5.4, since his script is identical to ours.

> I submitted a bugreport including the patch for this bug to debian [1].
> If we move the prepare-patch.sh out of the debian/ dir (suggested by
> Roland), that would not be necessary.
> 
> I suggest to move debian/prepare-patch.sh to
> scripts/prepare-debian-patch.sh.
> I'll create a patch if you agree.

I do not understand how changing the script location or name remove the
duplication between this script and prepare-kernel.sh. We fixed the
issue with the location of ipipe.h in prepare-kernel.sh ages ago, so, as
far as I understand, the bug comes from this duplication.

I really think the good idea is to implement the functionality of
prepare-patch.sh (i.e. being able to generate a patch without the kernel
sources) into prepare-kernel.sh --outpatch command, and simply make
prepare-patch.sh call prepare-kernel, this would end all the duplication
between the two scripts.


-- 
					    Gilles.


  reply	other threads:[~2010-08-19 15:28 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-20  7:43 [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system Theo Veenker
2010-07-20 10:14 ` Stefan Kisdaroczi
2010-07-20 11:18   ` Theo Veenker
2010-07-20 11:21     ` Gilles Chanteperdrix
2010-07-20 16:32       ` Theo Veenker
2010-08-16 11:22         ` Theo Veenker
2010-08-16 11:39           ` Gilles Chanteperdrix
2010-08-16 13:48             ` Theo Veenker
2010-08-16 13:53               ` Gilles Chanteperdrix
2010-08-16 14:11                 ` Theo Veenker
2010-08-16 11:40           ` Stefan Kisdaroczi
2010-08-16 11:59             ` Gilles Chanteperdrix
2010-08-16 12:00             ` Hemal C.Bavishi
2010-08-16 13:55             ` Theo Veenker
2010-08-16 12:45 ` Gilles Chanteperdrix
2010-08-16 14:26   ` Theo Veenker
2010-08-16 19:14     ` Theo Veenker
2010-08-16 22:39       ` Gilles Chanteperdrix
2010-08-17 10:27       ` Philippe Gerum
2010-08-17 13:51         ` Hemal C.Bavishi
2010-08-17 15:24           ` Stefan Kisdaroczi
2010-08-18  7:09             ` Gilles Chanteperdrix
2010-08-18  9:03               ` Paul
2010-08-18  9:06                 ` Gilles Chanteperdrix
2010-08-19 15:21                   ` Stefan Kisdaroczi
2010-08-19 15:28                     ` Gilles Chanteperdrix [this message]
2010-08-19 17:13                       ` Stefan Kisdaroczi
2010-08-19 18:49                         ` Gilles Chanteperdrix
2010-08-20 16:43                           ` Stefan Kisdaroczi
2010-08-18 18:45             ` [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system [PATCH] Stefan Kisdaroczi
2010-08-18 18:58               ` Stefan Kisdaroczi
2010-08-18 21:08               ` Paul
2010-08-17 17:01         ` [Xenomai-help] kernel 2.6.32.11 with xenomai 2.5.3 fails to boot on ubuntu lucid system Philippe Gerum
2010-08-17 17:43         ` Stefan Kisdaroczi
2010-08-17 18:06           ` Jan Kiszka
2010-08-18 12:38             ` Stefan Kisdaroczi
2010-08-18  8:27           ` Philippe Gerum
2010-08-18 12:11             ` Stefan Kisdaroczi
2010-08-18 13:54               ` Stefan Kisdaroczi
2010-08-22 17:42                 ` Philippe Gerum
2010-08-23 11:59                   ` Stefan Kisdaroczi
2010-08-18 14:53               ` Philippe Gerum
2010-08-18 18:09               ` Philippe Gerum
2010-08-18 23:21             ` Gilles Chanteperdrix
2010-08-18 23:25               ` Gilles Chanteperdrix
2010-08-19  5:18               ` Philippe Gerum
2010-08-20 12:31         ` Theo Veenker
2010-08-20 12:34           ` Gilles Chanteperdrix
2010-08-20 13:34             ` Theo Veenker
2010-08-20 13:01           ` Philippe Gerum
2010-08-22 17:36             ` Philippe Gerum
2010-08-23  7:15               ` Theo Veenker
2010-08-21  9:32           ` Daniele Nicolodi

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=4C6D4D9F.2060200@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=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.