From: Felix Fietkau Date: Sun, 15 Mar 2015 11:08:01 +0000 (+0000) Subject: scripts/metadata.pm: save target makefile names X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=797b0459c43a6c3afc6ea264430777c76591852a;p=openwrt%2Fstaging%2Fluka.git scripts/metadata.pm: save target makefile names Signed-off-by: Felix Fietkau SVN-Revision: 44780 --- diff --git a/scripts/metadata.pm b/scripts/metadata.pm index aa82fcd95d..09273df3ad 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -34,6 +34,7 @@ sub parse_target_metadata($) { my $file = shift; my ($target, @target, $profile); my %target; + my $makefile; open FILE, "<$file" or do { warn "Can't open file '$file': $!\n"; @@ -41,11 +42,13 @@ sub parse_target_metadata($) { }; while () { 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 => [],