aboutsummaryrefslogtreecommitdiffstats
path: root/buildtools/gen-pmdinfo-cfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/gen-pmdinfo-cfile.sh')
-rwxr-xr-xbuildtools/gen-pmdinfo-cfile.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/buildtools/gen-pmdinfo-cfile.sh b/buildtools/gen-pmdinfo-cfile.sh
new file mode 100755
index 00000000..0b6dc2ce
--- /dev/null
+++ b/buildtools/gen-pmdinfo-cfile.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2017 Intel Corporation
+
+arfile=$1
+output=$2
+pmdinfogen=$3
+
+echo > $output
+for ofile in `ar t $arfile` ; do
+ ar p $arfile $ofile | $pmdinfogen - - >> $output 2> /dev/null
+done
+exit 0