buildtools: output build failure reason to stderr
[dpdk.git] / buildtools / gen-pmdinfo-cfile.sh
1 #! /bin/sh
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2017 Intel Corporation
4
5 arfile=$1
6 output=$2
7 pmdinfogen=$3
8
9 echo > $output
10 for ofile in `ar t $arfile` ; do
11         ar p $arfile $ofile | $pmdinfogen - - >> $output 2> /dev/null
12 done
13 exit 0