summaryrefslogtreecommitdiff
path: root/buildtools/mktowscript
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/mktowscript')
-rwxr-xr-xbuildtools/mktowscript/mktowscript.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/mktowscript/mktowscript.pl b/buildtools/mktowscript/mktowscript.pl
index d3dd67f4a5..2ebf2d92c2 100755
--- a/buildtools/mktowscript/mktowscript.pl
+++ b/buildtools/mktowscript/mktowscript.pl
@@ -150,6 +150,9 @@ sub read_config_mk($)
next;
}
+ if ($line =~ /\$\(eval.\$\(call.proto_header_template.*,(.*),.*/) {
+ $result->{$section}->{AUTOPROTO} = $1;
+ }
if ($line =~ /^\$\(eval/) {
# skip eval lines for now
next;
@@ -259,6 +262,11 @@ foreach my $s (sort {$result->{$a}->{SECNUMBER} <=> $result->{$b}->{SECNUMBER}}
$trailer .= sprintf(",\n\toutput_type='%s'", strlist($sec->{$k}));
next;
}
+ if ($k eq "AUTOPROTO") {
+ my $list = trim(find_files(strlist($sec->{$k})));
+ $trailer .= sprintf(",\n\tautoproto='%s'", $list);
+ next;
+ }
if ($k eq "$s" . "_OBJ_FILES") {
my $list = trim(strlist($sec->{$k}));
$list =~ s/\.o/.c/g;