diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 19:01:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 19:01:08 +0000 |
commit | 38fef4b4a81b849d572c3235f4412d356849236f (patch) | |
tree | 8a3951b5782a8f18d2a216f632fac9a279e84fd9 /scripts/gen_deps.pl | |
parent | 634a6d7f861165f4275b4eb3c121755dce5e6ceb (diff) | |
download | mtk-20170518-38fef4b4a81b849d572c3235f4412d356849236f.zip mtk-20170518-38fef4b4a81b849d572c3235f4412d356849236f.tar.gz mtk-20170518-38fef4b4a81b849d572c3235f4412d356849236f.tar.bz2 |
add PROVIDES option, currently only used for menuconfig
SVN-Revision: 5194
Diffstat (limited to 'scripts/gen_deps.pl')
-rwxr-xr-x | scripts/gen_deps.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl index 745d31c..af206f0 100755 --- a/scripts/gen_deps.pl +++ b/scripts/gen_deps.pl @@ -34,6 +34,12 @@ while ($line = <>) { defined $pkg{$name} or $pkg{$name} = {}; $pkg{$name}->{src} = $src; }; + $line =~ /^Provides: \s*(.+)\s*$/ and do { + foreach my $vpkg (split /\s+/, $1) { + defined $pkg{$vpkg} or $pkg{$vpkg} = {}; + $pkg{$vpkg}->{virtual} = 1; + } + }; $line =~ /^Prereq-Check:/ and !defined $prereq{$src} and do { $pkg{$name}->{prereq} = 1; }; @@ -52,6 +58,7 @@ $line=""; foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { my $config; + next if defined $pkg{$name}->{virtual}; if ($options{SDK}) { $conf{$pkg{$name}->{src}} or do { $config = 'm'; @@ -69,6 +76,7 @@ foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { my $depline = ""; foreach my $dep (@{$pkg{$name}->{depends}}) { my $idx; + next if defined $pkg{$dep}->{virtual}; if (defined $pkg{$dep}->{src}) { ($pkg{$name}->{src} ne $pkg{$dep}->{src}) and $idx = $pkg{$dep}->{src}; } elsif (defined($pkg{$dep}) && !$options{SDK}) { |