diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-31 15:08:55 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-08-31 15:08:55 -0300 |
commit | 536149a42a489ca35bbb426f69504f58147152c8 (patch) | |
tree | 87c4b1ffd3f50dc11d3dade1ad2abeaf6748d4e0 | |
parent | 9af8121508d81fa7c7979ee74c624cfa5f6fa227 (diff) | |
download | mediapointer-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>
-rwxr-xr-x | v4l/scripts/make_kconfig.pl | 16 |
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); } |