summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-08-31 15:08:55 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-08-31 15:08:55 -0300
commit536149a42a489ca35bbb426f69504f58147152c8 (patch)
tree87c4b1ffd3f50dc11d3dade1ad2abeaf6748d4e0 /v4l/scripts
parent9af8121508d81fa7c7979ee74c624cfa5f6fa227 (diff)
downloadmediapointer-dvb-s2-536149a42a489ca35bbb426f69504f58147152c8.tar.gz
mediapointer-dvb-s2-536149a42a489ca35bbb426f69504f58147152c8.tar.bz2
Fix a bug at the building system
From: Mauro Carvalho Chehab <mchehab@infradead.org> "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 <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/make_kconfig.pl16
1 files changed, 11 insertions, 5 deletions
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);
}