From: Randy Dunlap <randy.dunlap@oracle.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Arnaud Lacombe <lacombar@gmail.com>,
Michal Marek <mmarek@suse.cz>,
Linus Torvalds <torvalds@linux-foundation.org>,
kyle@redhat.com, linux-kbuild@vger.kernel.org,
linux-kernel@vger.kernel.org,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: REGRESSION: Re: [GIT] kconfig rc fixes
Date: Thu, 4 Nov 2010 10:19:10 -0700 [thread overview]
Message-ID: <20101104101910.920efbed.randy.dunlap@oracle.com> (raw)
In-Reply-To: <4CD29493.5020101@redhat.com>
On Thu, 04 Nov 2010 07:10:11 -0400 Mauro Carvalho Chehab wrote:
> All dependencies required by the selected symbols are satisfied. For example,
> the simplest case is likely cafe_ccic, as, currently, there's just one possible
> driver that can be attached dynamically at runtime to cafe_ccic. We have:
>
> menu "Encoders/decoders and other helper chips"
> depends on !VIDEO_HELPER_CHIPS_AUTO
>
> ...
> config VIDEO_OV7670
> tristate "OmniVision OV7670 sensor support"
> depends on I2C && VIDEO_V4L2
> ...
> endmenu
>
> config VIDEO_CAFE_CCIC
> tristate "Marvell 88ALP01 (Cafe) CMOS Camera Controller support"
> depends on PCI && I2C && VIDEO_V4L2
> select VIDEO_OV7670
>
> The dependencies needed by ov7670 (I2C and VIDEO_V4L2) are also dependencies of
> cafe_ccic. So, it shouldn't have any problem for it to work (and it doesn't have,
> really. This is working as-is during the last 4 years).
This warning line:
warning: (VIDEO_CAFE_CCIC && MEDIA_SUPPORT && VIDEO_CAPTURE_DRIVERS && PCI && I2C && VIDEO_V4L2 || VIDEO_VIA_CAMERA && MEDIA_SUPPORT && VIDEO_CAPTURE_DRIVERS && VIDEO_V4L2 && FB_VIA) selects VIDEO_OV7670 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_CAPTURE_DRIVERS && !VIDEO_HELPER_CHIPS_AUTO && I2C && VIDEO_V4L2)
is not caused by CAFE_CCIC -- it's caused by VIDEO_VIA_CAMERA, because
VIDEO_HELPER_CHIPS_AUTO=y, so !VIDEO_HELPER_CHIPS_AUTO is false, so
VIDEO_OV7670 should not be available since it depends on
!VIDEO_HELPER_CHIPS_AUTO.
Below is a simple patch that reduces the kconfig warning count in 2.6.37-rc1
from 240 down to only 88. :)
> It should be noticed that, even if we replace the menu dependencies by an
> If, won't solve. I tried the enclosed patch, to see if it would produce something
> that the new Kconfig behavior accepts. The same errors apply.
That does not change any kconfig symbol logic/truth values.
> It is fine for me if you want/need to change the way Kconfig works, provided
> that it won't break (or produce those annoying warnings) the existing logic, and
> won't open the manual select menu, if the user selects the auto mode.
> Just send us a patch changing it to some other way of doing it.
>
> Thanks,
> Mauro
> ---
From: Randy Dunlap <randy.dunlap@oracle.com>
Clean up some video driver dependencies.
Reduces the kconfig warning for unmet dependencies from 240
down to only 88 in 2.6.37-rc1.
This makes the drivers in the VIDEO_HELPER_CHIPS_AUTO menu not
be dependent on that symbol. Just splash a comment there
instead. config tools will display the comment when
VIDEO_HELPER_CHIPS_AUTO is false.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/media/video/Kconfig | 4 ++++
1 file changed, 4 insertions(+)
--- linux-2.6.37-rc1-git3.orig/drivers/media/video/Kconfig
+++ linux-2.6.37-rc1-git3/drivers/media/video/Kconfig
@@ -112,6 +112,10 @@ config VIDEO_IR_I2C
#
menu "Encoders/decoders and other helper chips"
+
+comment "Only change these kconfig Helper/Auto settings if you are sure"
+ depends on !VIDEO_HELPER_CHIPS_AUTO
+comment "that you know what you are doing"
depends on !VIDEO_HELPER_CHIPS_AUTO
comment "Audio decoders"
next prev parent reply other threads:[~2010-11-04 17:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20101009224041.GA901@sepie.suse.cz>
2010-11-03 22:29 ` REGRESSION: Re: [GIT] kconfig rc fixes Mauro Carvalho Chehab
2010-11-03 22:47 ` Michal Marek
2010-11-03 23:02 ` Mauro Carvalho Chehab
2010-11-04 2:31 ` Arnaud Lacombe
2010-11-04 3:19 ` Mauro Carvalho Chehab
2010-11-04 4:02 ` Arnaud Lacombe
2010-11-04 4:15 ` Arnaud Lacombe
2010-11-04 11:10 ` Mauro Carvalho Chehab
2010-11-04 17:19 ` Randy Dunlap [this message]
2010-11-04 18:11 ` Mauro Carvalho Chehab
2010-11-04 18:32 ` Arnaud Lacombe
2010-11-04 18:51 ` Mauro Carvalho Chehab
2010-11-05 12:02 ` Jean Delvare
2010-11-06 21:30 ` [PATCH 0/5] " Arnaud Lacombe
2010-11-06 22:28 ` Mauro Carvalho Chehab
2010-11-09 17:32 ` Mauro Carvalho Chehab
2010-11-06 21:30 ` [PATCH 1/5] kconfig: add an option to determine a menu's visibility Arnaud Lacombe
2010-11-15 16:57 ` Arnaud Lacombe
2010-11-16 17:44 ` Mauro Carvalho Chehab
2010-11-16 21:41 ` Arnaud Lacombe
2010-11-16 21:52 ` Sam Ravnborg
[not found] ` <AANLkTi=WS6cveqzxVmwC2wucaCpEJJLHXx0A8XbAChRb@mail.gmail.com>
[not found] ` <4CEF8C74.8010600@suse.cz>
[not found] ` <20101126161511.GD9418@sepie.suse.cz>
[not found] ` <20101126081736.0ba8a90b.rdunlap@xenotime.net>
2011-04-28 17:38 ` Randy Dunlap
2011-05-02 15:33 ` Michal Marek
2010-11-06 21:30 ` [PATCH 2/5] kconfig: regen parser Arnaud Lacombe
2010-11-06 21:30 ` [PATCH 3/5] Revert "i2c: Fix Kconfig dependencies" Arnaud Lacombe
2010-11-06 21:30 ` [PATCH 4/5] media/video: convert Kconfig to use the menu's `visible' keyword Arnaud Lacombe
2010-11-06 21:30 ` [PATCH 5/5] i2c/algos: " Arnaud Lacombe
2010-11-04 18:34 ` REGRESSION: Re: [GIT] kconfig rc fixes Arnaud Lacombe
2010-11-04 18:43 ` Mauro Carvalho Chehab
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=20101104101910.920efbed.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=kyle@redhat.com \
--cc=lacombar@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=mmarek@suse.cz \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox