Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44780
my $file = shift;
my ($target, @target, $profile);
my %target;
+ my $makefile;
open FILE, "<$file" or do {
warn "Can't open file '$file': $!\n";
};
while (<FILE>) {
chomp;
+ /^Source-Makefile: \s*((.+\/)([^\/]+)\/Makefile)\s*$/ and $makefile = $1;
/^Target:\s*(.+)\s*$/ and do {
my $name = $1;
$target = {
id => $name,
board => $name,
+ makefile => $makefile,
boardconf => confstr($name),
conf => confstr($name),
profiles => [],