diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 11:08:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-15 11:08:01 +0000 |
commit | 797b0459c43a6c3afc6ea264430777c76591852a (patch) | |
tree | b42f58b7e8ac68bcbbec30180b8df1c48ab2423b /scripts/metadata.pm | |
parent | b7ebb19b02cb814abea57b2aa35dd163334675a6 (diff) | |
download | mtk-20170518-797b0459c43a6c3afc6ea264430777c76591852a.zip mtk-20170518-797b0459c43a6c3afc6ea264430777c76591852a.tar.gz mtk-20170518-797b0459c43a6c3afc6ea264430777c76591852a.tar.bz2 |
scripts/metadata.pm: save target makefile names
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44780
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index aa82fcd..09273df 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 (<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 => [], |