When you run the prepare_kernel script add the flag --verbose. If you have 
ipipe patches already applied to your kernel you should see a message about 
ipipe patches have already been applied. It will just add the new Xenomai bits.

Greg

  Original Message  
From: pintu.p...@gmail.com
Sent: March 23, 2018 11:58 AM
To: henning.sch...@siemens.com
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Upgrading xenomai-3 patches in existing xenomai kernel

On Fri, Mar 23, 2018 at 7:14 PM, Henning Schild
<henning.sch...@siemens.com> wrote:
> Am Fri, 23 Mar 2018 19:06:30 +0530
> schrieb Pintu Kumar <pintu.p...@gmail.com>:
>
>> Hi,
>>
>> I just came across a situation about Xenomai upgrade, and wanted to
>> know your opinion.
>>
>> Some 4 months back, I applied Xenomai-3 (and ipipe) patches to my x86
>> kernel 4.9.51, using the prepare_kernel script, and I am using it
>> since then.
>
> You will need an ipipe-enabled kernel anyways. Prepare kernel will just
> install the xenomai-bits.
> If you do not want to use an ipipe-kernel from upstream you can
> rebase/merge the ipipe branch (in your case 4.9.y) onto/into your
> kernel. All that should be under version control. Prepare-kernel is a
> build step and should be done on a clean working copy when building.
>

Yah, I can apply ipipe changes separately using the git command.
I guess that should work on top of existing ipipe changes already applied.

But I don't want to upgrade ipipe patches, since it is already latest.
My main concerns is about applying/upgrading xenomai driver/cobalt changes.
Should I use prepare_kernel for that (without ipipe option) ?
OR, should I download the commits and apply directly to the kernel in
normal way?
What is the right option, so that all future upgrades can be done
easily, just like normal kernel?
I think we should think about it and find some best way?
May be something like: scripts/upgrade_xenomai




> Henning
>
>> But, now I wanted to upgrade to latest Xenomai kernel patches from
>> Xenomai-3 git.
>> Can I simply cherrypick the patches from Xenomai and apply to my
>> Kernel ? I guess the folder structures are different, so I guess it
>> may not work cleanly.
>>
>> So, what is the best way to apply the latest Xenomai Kernel patches,
>> on to existing Xenomai converted kernel repo, without disturbing the
>> previously applied patches ?
>>
>> If there is any standard procedure you follow, please let me know.
>>
>>
>> Thanks,
>> Pintu
>>
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> https://xenomai.org/mailman/listinfo/xenomai
>

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai
_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to