blob: 9fb924aeddbb230b687516750abf97ced436cf43 [file] [log] [blame]
Dave Wallace3079a642017-09-06 01:59:43 -04001#!/bin/bash
2
3# Get Command Line arguements if present
4VPP_DIR=$1
5if [ "x$1" != "x" ]; then
6 VPP_DIR=$1
7else
8 VPP_DIR=`dirname $0`/../../
9fi
10
11if [ "x$2" != "x" ]; then
12 SUDOCMD="sudo -H -u $2"
13fi
14
15echo 'Building VCL test apps'
16cd $VPP_DIR
17$SUDOCMD perl -pi -e 's/noinst_PROGRAMS/bin_PROGRAMS/g' $VPP_DIR/src/uri.am
18$SUDOCMD make build-release
19echo "export WS_ROOT=$VPP_DIR" | sudo -H -u vagrant tee /home/vagrant/.bash_aliases
20source /home/vagrant/.bash_aliases
21sudo cp $VPP_DIR/src/vpp/conf/80-vpp.conf /etc/sysctl.d
22sudo sysctl -p/etc/sysctl.d/80-vpp.conf
23sudo modprobe uio_pci_generic