Author: nbd Date: 2015-03-15 12:08:01 +0100 (Sun, 15 Mar 2015) New Revision: 44780
Modified: trunk/scripts/metadata.pm Log: scripts/metadata.pm: save target makefile names Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/scripts/metadata.pm =================================================================== --- trunk/scripts/metadata.pm 2015-03-15 11:07:57 UTC (rev 44779) +++ trunk/scripts/metadata.pm 2015-03-15 11:08:01 UTC (rev 44780) @@ -34,6 +34,7 @@ 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 @@ }; 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 => [], _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
