Re: [linux-dvb] Re: Re: menuconfig not working as expected?
On Wed, 23 May 2007, Mauro Carvalho Chehab wrote: Hi Trent, does this mean v4l-dvb is no longer compatibel with the 2.6.20-kernel ? For the moment, yes. The v4l-dvb source tracks the latest kernel. To make the C code work with older kernels too, we have all kinds of #if/#endif blocks and magic stuff in file called compat.h that takes care of the differences. In this case, the problem is that the Kconfig files are not backward compatible. All the things we do to C code won't work for the Kconfig language. Hmm... Are you meaning handling language changes on Kconfig? Yes, current procedures don't work fine. Language changes would be one example. In this case it's not a language change, there is a new variable HAS_IOMEM that drivers depend on that doesn't exist in the old kernels. So in this case I could hack make_kconfig to assume HAS_IOMEM is true if (it doesn't exist kernel 2.6.22) I'm not sure exactly how to handle this. Maybe we could run the Kconfig files through cpp before using them, so we could use #if/#endif style macros to make them work on old kernels? The same gentree.pl script that cleans the C code would work on the Kconfig files too. This would work, although it seems a hack. As you mentioned, it would make life harder also for make kernellinks. Maybe a better solution would be writing a diff file to be applied at v4l/kconfig if kernel version 2.6.20. How would you keep this patch up to date as the kconfig files change? ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Re: [linux-dvb] Re: Re: menuconfig not working as expected?
Em Sáb, 2007-05-26 às 13:43 -0700, Trent Piepho escreveu: On Wed, 23 May 2007, Mauro Carvalho Chehab wrote: Hi Trent, does this mean v4l-dvb is no longer compatibel with the 2.6.20-kernel ? For the moment, yes. The v4l-dvb source tracks the latest kernel. To make the C code work with older kernels too, we have all kinds of #if/#endif blocks and magic stuff in file called compat.h that takes care of the differences. In this case, the problem is that the Kconfig files are not backward compatible. All the things we do to C code won't work for the Kconfig language. Hmm... Are you meaning handling language changes on Kconfig? Yes, current procedures don't work fine. Language changes would be one example. In this case it's not a language change, there is a new variable HAS_IOMEM that drivers depend on that doesn't exist in the old kernels. So in this case I could hack make_kconfig to assume HAS_IOMEM is true if (it doesn't exist kernel 2.6.22) In this case, hacking make_config seems to be the better. I'm not sure exactly how to handle this. Maybe we could run the Kconfig files through cpp before using them, so we could use #if/#endif style macros to make them work on old kernels? The same gentree.pl script that cleans the C code would work on the Kconfig files too. This would work, although it seems a hack. As you mentioned, it would make life harder also for make kernellinks. Maybe a better solution would be writing a diff file to be applied at v4l/kconfig if kernel version 2.6.20. How would you keep this patch up to date as the kconfig files change? There aren't much changes on Kconfig files. Maintaining the patches wouldn't be harder than maintaining the other compat stuff. However, as this is just a matter of a newer var, It seems that we can handle it on make_kconfig. -- Cheers, Mauro ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] Re: Re: menuconfig not working as expected?
Date: Tue, 22 May 2007 21:01:32 -0700 (PDT) From: Trent Piepho [EMAIL PROTECTED] Subject: Re: [linux-dvb] Re: menuconfig not working as expected? I tried v4l-dvb-015313b16eab which already includes your patch. But there is still only Enable drivers not supported by this kernel and Audio devices for multimedia ... It is probably leftover files from a previous build. Run make distclean after changes in the build system. There is no previously build. I tried it with a fresh hg. I also checked v4l-dvb-644ef6908cb6 from your repository with the same result. My kernel is a 2.6.20.1 Just to be sure: The changeset 0b52eec65285 build: Update make_kconfig to support depends on in menus is the patch that should fix it? There is no other patch (outside the hg) I have to use? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] Re: Re: menuconfig not working as expected?
On Wed, 23 May 2007, Martin Dauskardt wrote: Date: Tue, 22 May 2007 21:01:32 -0700 (PDT) From: Trent Piepho [EMAIL PROTECTED] Subject: Re: [linux-dvb] Re: menuconfig not working as expected? I tried v4l-dvb-015313b16eab which already includes your patch. But there is still only Enable drivers not supported by this kernel and Audio devices for multimedia ... It is probably leftover files from a previous build. Run make distclean after changes in the build system. There is no previously build. I tried it with a fresh hg. I also checked v4l-dvb-644ef6908cb6 from your repository with the same result. My kernel is a 2.6.20.1 Just to be sure: The changeset 0b52eec65285 build: Update make_kconfig to support depends on in menus is the patch that should fix it? There is no other patch (outside the hg) I have to use? That should be everything. What kernel are you building against? What does grep IOMEM .config return when run in your kernel source directory? I suspect it's the Kconfig files themselves that aren't backward compatible with your kernel. ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] Re: Re: menuconfig not working as expected?
Original-Nachricht Datum: Wed, 23 May 2007 00:26:41 -0700 (PDT) Von: Trent Piepho [EMAIL PROTECTED] That should be everything. What kernel are you building against? What does grep IOMEM .config return when run in your kernel source directory? [EMAIL PROTECTED]:/usr/local/src/linux-2.6.20.1# grep IOMEM .config when I enter this, I get no result I suspect it's the Kconfig files themselves that aren't backward compatible with your kernel. does this mean v4l-dvb is no longer compatibel with the 2.6.20-kernel ? -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] Re: Re: menuconfig not working as expected?
On Wed, 23 May 2007, Martin Dauskardt wrote: That should be everything. What kernel are you building against? What does grep IOMEM .config return when run in your kernel source directory? [EMAIL PROTECTED]:/usr/local/src/linux-2.6.20.1# grep IOMEM .config when I enter this, I get no result That's what I figured would be the problem. I suspect it's the Kconfig files themselves that aren't backward compatible with your kernel. does this mean v4l-dvb is no longer compatibel with the 2.6.20-kernel ? For the moment, yes. The v4l-dvb source tracks the latest kernel. To make the C code work with older kernels too, we have all kinds of #if/#endif blocks and magic stuff in file called compat.h that takes care of the differences. In this case, the problem is that the Kconfig files are not backward compatible. All the things we do to C code won't work for the Kconfig language. I'm not sure exactly how to handle this. Maybe we could run the Kconfig files through cpp before using them, so we could use #if/#endif style macros to make them work on old kernels? The same gentree.pl script that cleans the C code would work on the Kconfig files too. I'm not sure if the Kconfig files have cpp clean syntax, and this could complicate the make kernellinks ability. Note that having non-backward compatible kconfig files also complicates kernellinks. I think in this case, I could put a special case hack in make_kconfig that detects kernel 2.6.22 and does some stuff to make the combined Kconfig backward compatible. That won't help kernellinks though. ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
[linux-dvb] Re: Re: menuconfig not working as expected?
Hi Trent, does this mean v4l-dvb is no longer compatibel with the 2.6.20-kernel ? For the moment, yes. The v4l-dvb source tracks the latest kernel. To make the C code work with older kernels too, we have all kinds of #if/#endif blocks and magic stuff in file called compat.h that takes care of the differences. In this case, the problem is that the Kconfig files are not backward compatible. All the things we do to C code won't work for the Kconfig language. Hmm... Are you meaning handling language changes on Kconfig? Yes, current procedures don't work fine. I'm not sure exactly how to handle this. Maybe we could run the Kconfig files through cpp before using them, so we could use #if/#endif style macros to make them work on old kernels? The same gentree.pl script that cleans the C code would work on the Kconfig files too. This would work, although it seems a hack. As you mentioned, it would make life harder also for make kernellinks. Maybe a better solution would be writing a diff file to be applied at v4l/kconfig if kernel version 2.6.20. I'm not sure if the Kconfig files have cpp clean syntax, and this could complicate the make kernellinks ability. Note that having non-backward compatible kconfig files also complicates kernellinks. Yes. -- Cheers, Mauro ___ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb