From 536149a42a489ca35bbb426f69504f58147152c8 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 31 Aug 2006 15:08:55 -0300 Subject: Fix a bug at the building system From: Mauro Carvalho Chehab "select" were overriding "depends on". A workaround were previously been applied. This patch removes the workaround and fixes the issue. Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/make_kconfig.pl | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'v4l') diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index b203a2ac0..c43baeb74 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -151,7 +151,11 @@ sub check_deps($$) my $key=shift; my $arg=shift; - $depmods{$key}=$arg; + if ($depmods{$key}) { + $depmods{$key}=$depmods{$key}." $arg"; + } else { + $depmods{$key}=$arg; + } $arg=$arg." "; while ($arg ne "") { @@ -160,7 +164,7 @@ sub check_deps($$) my $prev=$depend{$val}; $depend { $val } = 1+$prev; } - $arg =~ s/^[^ ]+ //; + $arg =~ s/^[^ ]+[ ]+//; } return $ok; @@ -226,9 +230,11 @@ print "opening $file\n" if $debug; if (m|^\s+depends on\s+(.+?)\s*$|) { check_deps ($key,$1); } -# if (m|^\s+select\s+(.+?)\s*(if .*?)?\s*$|) { -# check_deps ($key,$1); -# } + # If a "select" dependency is not satisfied, that + # dependency is broken + if (m|^\s+select\s+(.+?)\s*(if .*?)?\s*$|) { + check_deps ($key,$1); + } if (m|^\s+bool(ean)?\s|) { add_bool($key); } -- cgit v1.2.3