diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-06-21 02:45:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-06-21 02:45:02 +0000 |
commit | 4686298b311b4564005ad60ed45d367e7aa42bbe (patch) | |
tree | 44b67b6cb3f7bf4d265881a24ec4eaf10475288b /scripts/gen_deps.pl | |
parent | 24cf53528f4d83c427a457c67c65423eedb2344e (diff) | |
download | master-187ad058-4686298b311b4564005ad60ed45d367e7aa42bbe.tar.gz master-187ad058-4686298b311b4564005ad60ed45d367e7aa42bbe.tar.bz2 master-187ad058-4686298b311b4564005ad60ed45d367e7aa42bbe.zip |
add sdk option for gen_deps.pl
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4034 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/gen_deps.pl')
-rwxr-xr-x | scripts/gen_deps.pl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/gen_deps.pl b/scripts/gen_deps.pl index de8572c762..32bf1f5dfb 100755 --- a/scripts/gen_deps.pl +++ b/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 = ""; |