All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leopold Palomo-Avellaneda <leo@domain.hid>
To: Stefan Kisdaroczi <kisda@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai patches
Date: Thu, 29 Oct 2009 11:05:05 +0100	[thread overview]
Message-ID: <200910291105.05820.leo@domain.hid> (raw)
In-Reply-To: <4AE85EE2.60209@domain.hid>

Hi Stefan,

first of all thanks for the guide. I knew more or less all the steps, but you 
have helped me a lot.

[...]

> Try to modify the line starting with KVERSION=... in the file
> /usr/src/kernel-patches/$ARCH/apply/xenomai
> Replace the 4 digit version numbers with 3 digits.

Ok, good to know. This is in same line as Gilles Chanteperdrix mail.

[...]
>
> 4) repack the archive (*tar.bz2 -> *orig.tar.gz):
> ~/src/xenomai$ bzcat xenomai-2.4.7.tar.bz2 | gzip >
> xenomai_2.4.7.orig.tar.gz && rm xenomai-2.4.7.tar.bz2

I don't think that this is necessary. At last I didn't need it.

> 5) extract the archive:
> ~/src/xenomai$ tar -zxf xenomai_2.4.7.orig.tar.gz
>
> 6) change dir:
> ~/src/xenomai$ cd xenomai-2.4.7/
>
> 7) update debian/changelog:
> ~/src/xenomai/xenomai-2.4.7$ debchange -v 2.4.7-0 Release 2.4.7

I did it with dch -i . Both are valid.

>
> 8) build:
> ~/src/xenomai/xenomai-2.4.7$ debuild

it builds the tar.orig.gz

[...]

>
> 6) patch the kernel with xenomai:
> ~/src/linux/linux-2.6.28.7$ /usr/src/kernel-patches/i386/apply/xenomai
>
> 7) configure the kernel:
> [optional] copy a kernel config to .config and run "make oldconfig"
> [/optional] ~/src/linux/linux-2.6.28.7$ make menuconfig
>
> 8) compile the kernel with make-kpkg:
> ~/src/linux/linux-2.6.28.7$ fakeroot make-kpkg --initrd --append-to-version
> -xenomai-2.4.7 --revision 1.0 binary-arch

you can do it alltogether with:

fakeroot make-kpkg --initrd --added-patches xenomai --config 
menuconfig --append-to-version "-xenomai-2.4.10" -revision 1.0 binary-arch

also, instead of binary-arch, with kernel_image kernel_headers it's ok.


> if you have a multicore box, use CONCURRENCY_LEVEL= to speed up the build:
> ~/src/linux/linux-2.6.28.7$ CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd
> --append-to-version -xenomai-2.4.7 --revision 1.0 binary-arch


FANTASTIC!!!!

the CONCURRENCY_LEVEL it's great. I didn't know it!!! thanks a lot.

OTOH, the debian package has a bug. I cannot compile xenomai, using the debian 
way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add something 
that fails with make menuconfig. I should write a bug. Just for information, 
it's not a xenomai upstream related question. ;-)

Thanks for all,

Best regards,

Leo


  reply	other threads:[~2009-10-29 10:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 12:13 [Xenomai-help] Xenomai patches Leopold Palomo-Avellaneda
2009-10-28 13:45 ` Gilles Chanteperdrix
2009-10-28 14:53   ` Leopold Palomo Avellaneda
2009-10-28 15:10 ` Stefan Kisdaroczi
2009-10-29 10:05   ` Leopold Palomo-Avellaneda [this message]
2009-10-29 10:13     ` Gilles Chanteperdrix
2009-10-29 10:14       ` Gilles Chanteperdrix
2009-10-29 10:21         ` Leopold Palomo-Avellaneda
2009-10-29 10:23         ` Leopold Palomo-Avellaneda
2009-10-29 10:55           ` Gilles Chanteperdrix
2009-10-29 11:25             ` Leopold Palomo-Avellaneda
2009-10-29 11:40               ` Jan Kiszka
2009-10-29 12:17               ` Stefan Kisdaroczi
2009-10-29 14:00                 ` Leopold Palomo-Avellaneda

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=200910291105.05820.leo@domain.hid \
    --to=leo@domain.hid \
    --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.