From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757973AbYEMQCS (ORCPT ); Tue, 13 May 2008 12:02:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754729AbYEMQCI (ORCPT ); Tue, 13 May 2008 12:02:08 -0400 Received: from cnc.isely.net ([64.81.146.143]:38646 "EHLO cnc.isely.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754279AbYEMQCH (ORCPT ); Tue, 13 May 2008 12:02:07 -0400 Date: Tue, 13 May 2008 11:02:05 -0500 (CDT) From: Mike Isely Reply-To: Mike Isely To: Mauro Carvalho Chehab , Michael Krufky , Ingo Molnar , Linux Kernel Mailing List , Guennadi Liakhovetski cc: Mike Isely at pobox Subject: Re: [patch] video: build fix for drivers/media/video/pvrusb2/ In-Reply-To: Message-ID: References: <20080511072137.GA16772@elte.hu> <37219a840805110534r4865623y6f9510554e2716ac@mail.gmail.com> <20080512235445.3a56cea0@gaivota> <37219a840805122103u2a74b050h95c006f99ff8690f@mail.gmail.com> <20080513124630.111c465b@gaivota> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 13 May 2008, Mike Isely wrote: > On Tue, 13 May 2008, Mauro Carvalho Chehab wrote: > > > On Tue, 13 May 2008 00:03:02 -0400 > > "Michael Krufky" wrote: > > > > > > > > That sounds like it would be OK, although something like this would > > > probably be better: > > > > > > config VIDEO_PVRUSB2 > > > tristate "Hauppauge WinTV-PVR USB2 support" > > > - depends on VIDEO_V4L2 && I2C > > > + depends on VIDEO_V4L2 && I2C && (DVB_CORE if VIDEO_PVRUSB2_DVB) > > > select FW_LOADER > > > select MEDIA_TUNER > > > select VIDEO_TVEEPROM > > > > This doesn't look to be a good idea, since VIDEO_PVRUSB2_DVB depends on > > VIDEO_PVRUSB2. So, you'll create a circular dependency. The syntax I've > > proposed seems cleaner. Of course, it needs to be tested. IMO, all hybrid > > devices should be dependent of VIDEO_MEDIA. This will help to avoid this kind > > of issue. > > > > > I don't know if that syntax works for "depends on" , but it does work > > > for select. > > > > > > if "depends on FOO if BAR" doesnt work, would adding "select DVB_CORE > > > if VIDEO_PVRUSB2_DVB" solve the problem? > > > > Also, this leads into a circular reference. > > Mauro: > > Where is the loop that results in a circular reference? No part of V4L > or DVB depends (or otherwise has any reliance) on VIDEO_PVRUSB2. All > Mike Krufky is trying to set up is that VIDEO_PVRUSB2 should only depend > on DVB_CORE if the DVB part of the driver (i.e. VIDEO_PVRUSB2_DVB) has > been enabled. Without VIDEO_PVRUSB2_DVB selected, then DVB_CORE is not > required by the driver. > > I've been quiet about this issue because I'm not a kconfig expert, but > you've lost me with this conclusion. > > -Mike Never mind. I think I see it, and will figure out the rest off-line. -Mike -- Mike Isely isely @ pobox (dot) com PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8