Re: kernel-2.6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 02 August 2003 10:27 am, Bernd Porr wrote:
> Dear all,
>
> we are going to have fun to make comedi running under 2.6 (see below).
> The question is how to proceed. There are four possible options and I
> would like to discuss these options.
>
> First the problem I see: the configuration of comedi is just now based
> on a hack which compiles a fake module to get all the compiler flags. In
> a second step these compilter flags are taken and then comedi is
> compiled with an older hacked verion of a kernel makefile. It worked for
> 2.2. and 2.4 but for 2.6 it doesn't and probably its getting more and
> more difficult.
>
> There are 4 options:
> 1) Modify the existing configure script and try to make it work with
> 2.6. Modify the source. etc.

I'd like to stick with 1.  I've got something that nearly works for 
extracting the compilation flags from a 2.6 kernel, I just need to do a 
bit more before I commit it. 

> 2) Get basically rid of the configuration script in this form and try to
> use more of the build utils from the kernel. Just now it is not possible
> as the kernel is not able to include external header files (from my
> knowledge, please correct me) and it's up to the kernel people to supply
> us with the option. Modify the source to run with all kernel versions
> (is it possible any more?).
> 3) Make comedi part of the kernel tree and compile then with the
> standard "make modules". No need to submit it to Linus (why not?). But
> make it so that comedi installs itself as part of the main linux tree.
> This eliminates the include problem and also elimiates the fake linux
> include directories. shipped with comedi. Probably we have to have 3
> different Makefiles for the different kernel versions (2.2, 2.4, 2.6)
> and some (loads of) #defines to get rid of error msgs and to make run
> with any kernel-src.
> 4) Make specific versions for comdi for different kernel versions (David
> won't like it, probably?). It's a nice feature that comedi woks with all
> kernel versions but it also becomes more and more difficult to achieve
> it. Create a comedi tree which basically resides in the kernel tree (see
> 3) and doesn't have the overhead for all the other versions. Like the
> pcmcia subsystem which is also externally developed.
>
> Of course there are compromises possible. Develop now a version for 2.6
> and backport to a unified version for 2.2/2.4. For me it seems to be
> just now the best solution. 2.6 has a different build system. Personally
> I'm interested in both versions 2.4. and 2.6.
>
> What does the community think?
>
> /Bernd

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/LYne5vihyNWuA4URAvr0AJ9iq4SyyVDkOOpmAH4EASC2Y9ZAsQCcDKHh
oiqUbdjhZo0e25hwk1UqH5I=
=PaWl
-----END PGP SIGNATURE-----

Received on 2003-08-03Z21:16:59