aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/scripts/find-dpdk-contents
blob: f8c80b5bf81d5487bf70a89486876db937c7ce67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# includes
rm -rf dpdk-includes
mkdir dpdk-includes
(cd $1/dpdk/include; tar cfh - . | (cd ../../../dpdk-includes; tar xf -))

paths=`cd dpdk-includes; find . -type f -print`
rm -f $2

for path in $paths
do
    dir=`dirname $path`
    if [ $dir = "." ] ; then
        echo ../dpdk-includes/$path /usr/include/vpp-dpdk >> $2
    else
        echo ../dpdk-includes/$path /usr/include/vpp-dpdk/$dir >> $2
    fi
done