Message ID | 4CA22A79.9020309@hoogenraad.net (mailing list archive) |
---|---|
State | Rejected, archived |
Headers |
Return-path: <mchehab@pedra> Envelope-to: mchehab@pedra Delivery-date: Tue, 28 Sep 2010 14:49:19 -0300 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from <mchehab@pedra>) id 1P0eIo-0008Dc-VA for mchehab@pedra; Tue, 28 Sep 2010 14:49:19 -0300 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.17) for <mchehab@localhost> (single-drop); Tue, 28 Sep 2010 14:49:18 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P0eIN-00028P-PU; Tue, 28 Sep 2010 17:48:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770Ab0I1Rsp (ORCPT <rfc822; kmpark@infradead.org> + 1 other); Tue, 28 Sep 2010 13:48:45 -0400 Received: from psmtp30.wxs.nl ([195.121.247.32]:37520 "EHLO psmtp30.wxs.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754239Ab0I1Rso (ORCPT <rfc822;linux-media@vger.kernel.org>); Tue, 28 Sep 2010 13:48:44 -0400 Received: from localhost (ip545779c6.direct-adsl.nl [84.87.121.198]) by psmtp30.wxs.nl (iPlanet Messaging Server 5.2 HotFix 2.15 (built Nov 14 2006)) with ESMTP id <0L9G00C4HXH6Z0@psmtp30.wxs.nl> for linux-media@vger.kernel.org; Tue, 28 Sep 2010 19:48:42 +0200 (MEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (8.14.3/8.14.3/Debian-6) with ESMTP id o8SHmfM5005435; Tue, 28 Sep 2010 19:48:41 +0200 Date: Tue, 28 Sep 2010 19:48:41 +0200 From: Jan Hoogenraad <jan-conceptronic@hoogenraad.net> Subject: Re: updated make_kconfig.pl for Ubuntu In-reply-to: <4CA11E25.5030206@gmail.com> To: Mauro Carvalho Chehab <maurochehab@gmail.com>, Douglas Schilling Landgraf <dougsland@gmail.com> Cc: "Ole W. Saastad" <olewsaa@online.no>, linux-media@vger.kernel.org Message-id: <4CA22A79.9020309@hoogenraad.net> Organization: Hoogenraad Interface Services MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100917 SeaMonkey/2.0.8 References: <1284493110.1801.57.camel@sofia> <4C924EB8.9070500@hoogenraad.net> <4C93364C.3040606@hoogenraad.net> <4C934806.7050503@gmail.com> <4C934C10.2060801@hoogenraad.net> <4C93800B.8070902@gmail.com> <4C9F7267.7000707@hoogenraad.net> <4CA018C4.9000507@gmail.com> <4CA0E554.40406@hoogenraad.net> <4CA0ECA9.30208@gmail.com> <4CA10262.6060206@hoogenraad.net> <4CA11E25.5030206@gmail.com> Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org Sender: <mchehab@pedra> |
Commit Message
Jan Hoogenraad
Sept. 28, 2010, 5:48 p.m. UTC
Douglas: I have an updated make_kconfig.pl for Ububtu on: http://linuxtv.org/hg/~jhoogenraad/rtl2831-r2/file/cb34ee1c29fc/v4l/scripts/make_kconfig.pl Could you test if make allyesconfig actually keeps FIREDTV enabled on a non-Ubuntu system ? If so, can you merge this version into the main stream ? Mauro: You are very right. I did not look far enough. The expanded place where I expect the dma.h file would be (as I /lib/modules/2.6.28-19-generic/build/include/config/ieee1394/dma.h note that the letters "el" should be removed from your first expression $dmahplace="$kernelsrc/include/config/ieee1394/dma.h"; needs to be: $dmahplace="$kernsrc/include/config/ieee1394/dma.h"; Thanks a lot for helping ! As patch, relative to the diff you sent: # HG changeset patch # User Jan Hoogenraad <jan-conceptronic@h-i-s.nl> # Date 1285695899 -7200 # Node ID 891128e7c3334e41f6c173ee5c01fddbce493b73 # Parent cb34ee1c29fc8891ad3792b3df76031a72e39b9d Location fix From: Jan Hoogenraad <jan-conceptronic@h-i-s.nl> Location fix Priority: normal Signed-off-by: Jan Hoogenraad <jan-conceptronic@h-i-s.nl> Mauro Carvalho Chehab wrote: > Em 27-09-2010 17:45, Jan Hoogenraad escreveu: >> Mauro: >> >> On my system, the call to make_kconfig reads: >> ./scripts/make_kconfig.pl /lib/modules/2.6.28-19-generic/build /lib/modules/2.6.28-19-generic/build 1 >> >> Using $kernelsrc yields the following error: >> Global symbol "$kernelsrc" requires explicit package name at ./scripts/make_kconfig.pl line 694. >> >> Using >> $dmahplace="$kernsrc/include/config/ieee1394/dma.h"; >> yields the following INCORRECT expansion: >> /lib/modules/2.6.28-19-generic/build/include/config/ieee1394/dma.h >> this is the place where I am building into, which is different from the place where Ubuntu places the include files from the package >> >> Thus I built an expression to get: >> /usr/src/linux-headers-2.6.28-19-generic/include/config/ieee1394/dma.h >> as I described in the mail of yesterday. > > > Huh? Are you sure that Ubuntu doesn't have a symbolic link at /lib/modules/2.6.28-19-generic/build pointing > to /usr/src/linux-headers-2.6.28-19-generic/? > > If it doesn't have, then all compat checks done by make_config_compat.pl would fail. > >> Now, I realize that the header files could ALSO be present in the build directory, so there should be a check on that as well, as otherwise the FIREDTV is incorrectly disabled on other distros, or source builds. >> >> Yes, and I know all of this is ugly .... > > It is not just ugly. It will break compilation on Ubuntu with: > $ make release DIR=<some dir> > > Cheers, > Mauro >
Comments
Em 28-09-2010 14:48, Jan Hoogenraad escreveu: > Douglas: > > I have an updated make_kconfig.pl for Ububtu on: > http://linuxtv.org/hg/~jhoogenraad/rtl2831-r2/file/cb34ee1c29fc/v4l/scripts/make_kconfig.pl > > Could you test if make allyesconfig actually keeps FIREDTV enabled on a non-Ubuntu system ? > > If so, can you merge this version into the main stream ? > > > Mauro: > > You are very right. I did not look far enough. > > The expanded place where I expect the dma.h file would be (as I > /lib/modules/2.6.28-19-generic/build/include/config/ieee1394/dma.h > > note that the letters "el" should be removed from your first expression > $dmahplace="$kernelsrc/include/config/ieee1394/dma.h"; > needs to be: > $dmahplace="$kernsrc/include/config/ieee1394/dma.h"; > > Thanks a lot for helping ! > > > As patch, relative to the diff you sent: > > # HG changeset patch > # User Jan Hoogenraad <jan-conceptronic@h-i-s.nl> > # Date 1285695899 -7200 > # Node ID 891128e7c3334e41f6c173ee5c01fddbce493b73 > # Parent cb34ee1c29fc8891ad3792b3df76031a72e39b9d > Location fix > > From: Jan Hoogenraad <jan-conceptronic@h-i-s.nl> > > Location fix > > Priority: normal > > Signed-off-by: Jan Hoogenraad <jan-conceptronic@h-i-s.nl> > > diff -r cb34ee1c29fc -r 891128e7c333 v4l/scripts/make_kconfig.pl > --- a/v4l/scripts/make_kconfig.pl Mon Sep 27 20:27:20 2010 +0200 > +++ b/v4l/scripts/make_kconfig.pl Tue Sep 28 19:44:59 2010 +0200 > @@ -688,10 +688,7 @@ > # Check for full kernel sources and print a warning > sub dmahcheck() > { > - my $dmahplace= "".$kernsrc; > - $dmahplace =~ s-^/lib/modules/--g; > - $dmahplace =~ s-/.*$--g; > - $dmahplace="/usr/src/linux-headers-$dmahplace/include/config/ieee1394/dma.h"; > + my $dmahplace="$kernsrc/include/config/ieee1394/dma.h"; > if (! -e $dmahplace) { > print <<"EOF2"; Ok, now it looks correct on my eyes, and it should not hurt compilation with make release and with distros that do a good job with their kernel packages. I'll let Douglas review and test, as he is the maintainer. It would be better if you could send him a diff. you may use hg diff to generate it against an older version, in order to merge all your make_kconfig.pl patches, or just create a new clone from master and apply it there. A side question: when do you intend to send us the patches for the Realtek rtl2831? Cheers, Mauro. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Mauro Carvalho Chehab wrote: > > A side question: when do you intend to send us the patches for the Realtek > rtl2831? > Basically, I'm waiting for somebody to take up the task to include IR support in Antti's branches. I don't have the knowledge to do so. In the mean time, I just maintain the code from Realtek on a sync with mainline only base in hg, as the code is really sub-standard. http://www.linuxtv.org/wiki/index.php/Realtek_RTL2831U I have seen that Realtek keeps updating their Windows code, and the v4l port, at least for the RTL2832. I see the "recipes" to use that on many forums. > Cheers, > Mauro. >
diff -r cb34ee1c29fc -r 891128e7c333 v4l/scripts/make_kconfig.pl --- a/v4l/scripts/make_kconfig.pl Mon Sep 27 20:27:20 2010 +0200 +++ b/v4l/scripts/make_kconfig.pl Tue Sep 28 19:44:59 2010 +0200 @@ -688,10 +688,7 @@ # Check for full kernel sources and print a warning sub dmahcheck() { - my $dmahplace= "".$kernsrc; - $dmahplace =~ s-^/lib/modules/--g; - $dmahplace =~ s-/.*$--g; - $dmahplace="/usr/src/linux-headers-$dmahplace/include/config/ieee1394/dma.h"; + my $dmahplace="$kernsrc/include/config/ieee1394/dma.h"; if (! -e $dmahplace) { print <<"EOF2";