Fuel plugin to deploy OVS with NSH and DPDK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-ovs-nsh-dpdk.sh 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/bash
  2. set -eux
  3. OVS_COMMIT=f4b0e64cffb4777ff03d48621c3eadcf1d8c19f3
  4. URL_OVS=https://github.com/openvswitch/ovs.git
  5. OVS_VER=${OVS_VER:-2.6.1}
  6. BUILD_HOME=$HOME/nsh
  7. BUILD_DEST=${BUILD_DEST:-/deb}
  8. DIR="$(dirname `readlink -f $0`)"
  9. export DEB_BUILD_OPTIONS='parallel=8 nocheck'
  10. sudo apt-get -y install devscripts dpkg-dev git wget
  11. rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}
  12. cd ${BUILD_HOME}
  13. # copy from debian/control
  14. sudo apt-get install -y \
  15. graphviz \
  16. autoconf \
  17. automake \
  18. bzip2 \
  19. debhelper \
  20. dh-autoreconf \
  21. libssl-dev \
  22. libtool \
  23. openssl \
  24. procps \
  25. python-all \
  26. python-twisted-conch \
  27. python-zopeinterface \
  28. python-six
  29. git clone https://github.com/openvswitch/ovs.git
  30. cd ovs; git checkout ${OVS_COMMIT}
  31. PATCHES=$(cd ${DIR}/ovs_nsh_patches/v2.6.1/; echo *patch)
  32. for patch in ${PATCHES}
  33. do
  34. patch -p1 < ${DIR}/ovs_nsh_patches/v2.6.1/${patch}
  35. done
  36. # build ovs
  37. cd ${BUILD_HOME}/ovs
  38. cat << EOF > debian/changelog
  39. openvswitch (${OVS_VER}-1.nsh) unstable; urgency=low
  40. * Support NSH
  41. -- Open vSwitch team <dev@openvswitch.org> $(date --rfc-2822)
  42. EOF
  43. debian/rules build; fakeroot debian/rules binary
  44. cp ${BUILD_HOME}/*.deb ${BUILD_DEST}