summaryrefslogtreecommitdiffstats
path: root/build-root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'build-root/scripts')
-rwxr-xr-xbuild-root/scripts/find-dpdk-contents20
1 files changed, 20 insertions, 0 deletions
diff --git a/build-root/scripts/find-dpdk-contents b/build-root/scripts/find-dpdk-contents
new file mode 100755
index 00000000000..f8c80b5bf81
--- /dev/null
+++ b/build-root/scripts/find-dpdk-contents
@@ -0,0 +1,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
+