mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:14:05 +02:00
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
This commit is contained in:
parent
0b0afa4d81
commit
211af51534
@ -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) {
|
||||
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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user