Changeset 4034


Ignore:
Timestamp:
2006-06-21T04:45:02+02:00 (10 years ago)
Author:
nbd
Message:

add sdk option for gen_deps.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/buildroot-ng/openwrt/scripts/gen_deps.pl

    r4024 r4034  
    55my $src; 
    66my $makefile; 
     7my %conf; 
    78my %pkg; 
    89my %dep; 
     10my %options; 
     11my $opt; 
     12 
     13while ($opt = shift @ARGV) { 
     14        $opt =~ /^-s/ and $options{SDK} = 1; 
     15} 
    916 
    1017my $line; 
     
    3340 
    3441foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) { 
    35         print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n"; 
     42        if ($options{SDK}) { 
     43                $conf{$pkg{$name}->{src}} or print "package-m += $pkg{$name}->{src}\n"; 
     44                $conf{$pkg{$name}->{src}} = 1; 
     45        } else { 
     46                print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n"; 
     47        } 
    3648 
    3749        my $hasdeps = 0; 
Note: See TracChangeset for help on using the changeset viewer.