13 while ($opt = shift @ARGV) {
14 $opt =~ /^-s/ and $options{SDK
} = 1;
20 $line =~ /^Source-Makefile: \s*(.+\/([^\
/]+)\/Makefile
)\s
*$/ and do {
24 $line =~ /^Package: \s*(.+)\s*$/ and do {
26 defined $pkg{$name} or $pkg{$name} = {};
27 $pkg{$name}->{src
} = $src;
29 $line =~ /^(Build-)?Depends: \s*(.+)\s*$/ and do {
30 $pkg{$name}->{depends
} ||= [];
31 foreach my $v (split /\s+/, $2) {
32 next if $v =~ /^[\+]?@/;
34 push @
{$pkg{$name}->{depends
}}, $v;
41 foreach $name (sort {uc($a) cmp uc($b)} keys %pkg) {
43 $conf{$pkg{$name}->{src
}} or print "package-m += $pkg{$name}->{src}\n";
44 $conf{$pkg{$name}->{src
}} = 1;
46 print "package-\$(CONFIG_PACKAGE_$name) += $pkg{$name}->{src}\n";
51 foreach my $dep (@
{$pkg{$name}->{depends
}}) {
53 if (defined $pkg{$dep}->{src
}) {
54 ($pkg{$name}->{src
} ne $pkg{$dep}->{src
}) and $idx = $pkg{$dep}->{src
};
55 } elsif (defined($pkg{$dep}) && !$options{SDK
}) {
59 next if $dep{$pkg{$name}->{src
}."->".$idx};
60 $depline .= " $idx\-compile";
61 $dep{$pkg{$name}->{src
}."->".$idx} = 1;
65 $line .= "$pkg{$name}->{src}-compile: $depline\n";
This page took 0.059453 seconds and 5 git commands to generate.