vpp/build-root/scripts/find-dpdk-contents
Dave Barach 74574228b0 Add a vpp-dpdk-dev package, enable plugins to use dpdk APIs directly
Change-Id: I69db06a0b5d5d556c2fd570ea0056bb59d7bc3d6
Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-01 12:06:04 -05:00

21 lines
436 B
Bash
Executable File

#!/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