|
|
@ -34,6 +34,7 @@ sub parse_target_metadata($) { |
|
|
|
my $file = shift; |
|
|
|
my $file = shift; |
|
|
|
my ($target, @target, $profile); |
|
|
|
my ($target, @target, $profile); |
|
|
|
my %target; |
|
|
|
my %target; |
|
|
|
|
|
|
|
my $makefile; |
|
|
|
|
|
|
|
|
|
|
|
open FILE, "<$file" or do { |
|
|
|
open FILE, "<$file" or do { |
|
|
|
warn "Can't open file '$file': $!\n"; |
|
|
|
warn "Can't open file '$file': $!\n"; |
|
|
@ -41,11 +42,13 @@ sub parse_target_metadata($) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
while (<FILE>) { |
|
|
|
while (<FILE>) { |
|
|
|
chomp; |
|
|
|
chomp; |
|
|
|
|
|
|
|
/^Source-Makefile: \s*((.+\/)([^\/]+)\/Makefile)\s*$/ and $makefile = $1; |
|
|
|
/^Target:\s*(.+)\s*$/ and do { |
|
|
|
/^Target:\s*(.+)\s*$/ and do { |
|
|
|
my $name = $1; |
|
|
|
my $name = $1; |
|
|
|
$target = { |
|
|
|
$target = { |
|
|
|
id => $name, |
|
|
|
id => $name, |
|
|
|
board => $name, |
|
|
|
board => $name, |
|
|
|
|
|
|
|
makefile => $makefile, |
|
|
|
boardconf => confstr($name), |
|
|
|
boardconf => confstr($name), |
|
|
|
conf => confstr($name), |
|
|
|
conf => confstr($name), |
|
|
|
profiles => [], |
|
|
|
profiles => [], |
|
|
|