mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
scripts/metadata.pm: save target makefile names
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44780 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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 => [],
|
||||
|
||||
Reference in New Issue
Block a user