Add GDB and GDB Server to bootstrap files
[vpp.git] / build-root / vagrant / bootstrap.ubuntu1404.sh
index 1802301..2b6bbcb 100644 (file)
@@ -10,7 +10,7 @@ apt-get upgrade -y
 sudo update-alternatives --install /bin/sh sh /bin/bash 100
 
 # Install build tools
-apt-get install -y build-essential autoconf automake bison libssl-dev ccache libtool git dkms debhelper emacs
+apt-get install -y build-essential autoconf automake bison libssl-dev ccache libtool git dkms debhelper emacs libganglia1-dev libapr1-dev libconfuse-dev git-review gdb gdbserver
 
 # Install other stuff
 # apt-get install -y qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
@@ -23,9 +23,6 @@ apt-get install -y openjdk-7-jdk
 # $$$ comment out for the moment
 # apt-get install -y --force-yes maven3
 
-# Install debian packaging tools
-apt-get install -y debhelper dkms
-
 # Setup for hugepages using upstart so it persists across reboots
 echo "vm.nr_hugepages=1024" >> /etc/sysctl.d/20-hugepages.conf
 sysctl --system
@@ -48,12 +45,23 @@ start hugepages
 
 # Setup the vpp code
 cd ~vagrant/
-sudo -u vagrant mkdir git
-cd git/
 
-# You will need to alter this line to reflect reality.
-sudo -H -u vagrant git clone /vpp
-cd vpp/
+sudo -u vagrant mkdir -p git/vpp
+cp /vagrant/README.moved git/vpp/
+
+# Disable all ethernet interfaces other than the default route
+# interface so VPP will use those interfaces.  The VPP auto-blacklist
+# algorithm prevents the use of any physical interface contained in the
+# routing table (i.e. "route --inet --inet6") preventing the theft of
+# the management ethernet interface by VPP from the kernel.
+for intf in $(ls /sys/class/net) ; do
+    if [ -d /sys/class/net/$intf/device ] && 
+        [ "$(route --inet --inet6 | grep default | grep $intf)" == "" ] ; then
+        ifconfig $intf down
+    fi
+done
+
+cd /vpp/
 
 # Initial vpp build
 if [ -d build-root ]; then