Add ping vnf using vhost-user & virtio-user
[openretriever.git] / src / vnf / virtio-user-ping / build_vpp.sh
1 #!/bin/bash
2 sudo apt-get update
3 sudo apt-get -y install sudo apt-transport-https devscripts git wget vim net-tools
4 cd /root
5 git clone https://gerrit.fd.io/r/vpp
6 cd vpp
7 git checkout stable/1707
8 cp  ../01-add-single-file.patch  dpdk/dpdk-17.05_patches
9 cp  ../02-fix-nohuge-option.patch  dpdk/dpdk-17.05_patches
10 patch -p1 < ../virtio-user.patch
11 make UNATTENDED=yes install-dep || true
12 make bootstrap
13 make build; find . -type f | grep "install.*bin" | xargs -I {} cp {} /usr/bin/