From: Felix Fietkau Date: Wed, 21 Jun 2006 02:45:02 +0000 (+0000) Subject: add sdk option for gen_deps.pl X-Git-Tag: reboot~30718^2~505 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=00dee08dd9d1bb11593f211d15f797915378de29;p=openwrt%2Fstaging%2Fxback.git add sdk option for gen_deps.pl SVN-Revision: 4034 --- diff --git a/openwrt/scripts/gen_deps.pl b/openwrt/scripts/gen_deps.pl index de8572c762..32bf1f5dfb 100755 --- a/openwrt/scripts/gen_deps.pl +++ b/openwrt/scripts/gen_deps.pl @@ -4,8 +4,15 @@ use strict; my $name; my $src; my $makefile; +my %conf; my %pkg; my %dep; +my %options; +my $opt; + +while ($opt = shift @ARGV) { + $opt =~ /^-s/ and $options{SDK} = 1; +} my $line; while ($line = <>) { @@ -32,7 +39,12 @@ while ($line = <>) { $line=""; foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { - print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n"; + if ($options{SDK}) { + $conf{$pkg{$name}->{src}} or print "package-m += $pkg{$name}->{src}\n"; + $conf{$pkg{$name}->{src}} = 1; + } else { + print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n"; + } my $hasdeps = 0; my $depline = "";