summaryrefslogtreecommitdiff
path: root/buildtools/gen-pmdinfo-cfile.sh
blob: 565e08913178d918bec8b4d838aa54535cce2655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation

arfile=$1
output=$2
pmdinfogen=$3

tmp_o=${output%.c.pmd.c}.tmp.o

ar p $arfile > $tmp_o && \
		$pmdinfogen $tmp_o $output