2 # basic build script example
5 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
6 OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
9 echo OS_VERSION_ID: $OS_VERSION_ID
11 # do nothing but print the current slave hostname
13 export CCACHE_DIR=/tmp/ccache
14 if [ -d $CCACHE_DIR ];then
15 echo $CCACHE_DIR exists
18 echo $CCACHE_DIR does not exist. This must be a new slave.
21 echo "cat /etc/bootstrap.sha"
22 if [ -f /etc/bootstrap.sha ];then
23 cat /etc/bootstrap.sha
25 echo "Cannot find cat /etc/bootstrap.sha"
28 echo "cat /etc/bootstrap-functions.sha"
29 if [ -f /etc/bootstrap-functions.sha ];then
30 cat /etc/bootstrap-functions.sha
32 echo "Cannot find cat /etc/bootstrap-functions.sha"
35 echo "sha1sum of this script: ${0}"
40 make UNATTENDED=yes install-dep
41 make UNATTENDED=yes dpdk-install-dev
42 make UNATTENDED=yes -C build-root TAG=vpp wipe-all install-packages
43 make UNATTENDED=yes -C build-root TAG=vpp sample-plugin-install
44 make UNATTENDED=yes -C build-root TAG=vpp libmemif-install
45 make UNATTENDED=yes pkg-deb
47 if [ "x${VPP_REPO}" == "x1" ]; then
48 if [ "x${REBASE_NEEDED}" == "x1" ]; then
49 echo "This patch to vpp is based on an old point in the tree that is likely"
50 echo "to fail verify."
51 echo "PLEASE REBASE PATCH ON THE CURRENT HEAD OF THE VPP REPO"
56 echo "*******************************************************************"
57 echo "* VPP ARM BUILD SUCCESSFULLY COMPLETED"
58 echo "*******************************************************************"