don't generate invalid dependency lines in sdk mode
authorFelix Fietkau <nbd@openwrt.org>
Wed, 21 Jun 2006 03:01:40 +0000 (03:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 21 Jun 2006 03:01:40 +0000 (03:01 +0000)
SVN-Revision: 4035

openwrt/scripts/gen_deps.pl

index 32bf1f5dfb11b6113ec43f1a0dfa5260a685467e..04998715d41d6b97f43d82e819d6e0f52e03967e 100755 (executable)
@@ -52,7 +52,7 @@ foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
                my $idx;
                if (defined $pkg{$dep}->{src}) {
                        ($pkg{$name}->{src} ne $pkg{$dep}->{src}) and $idx = $pkg{$dep}->{src};
-               } elsif (defined $pkg{$dep}) {
+               } elsif (defined($pkg{$dep}) && !$options{SDK}) {
                        $idx = $dep;
                }
                if ($idx) {