summaryrefslogtreecommitdiffstats
path: root/scripts/build-packages.sh
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-02-01 10:16:50 +0000
committerGerrit Code Review <gerrit@fd.io>2019-02-01 10:16:50 +0000
commitc00bc6fc2af9a54fe339f8d6a3ec1ab889c2931e (patch)
tree310460a90bcee82b05590849f2a213a0cca8b59a /scripts/build-packages.sh
parent107e05eab1d032b9ac741f88a3bec8e60b22efc9 (diff)
parent1dea17fe921e1f94db63e4c563fe08dd25734900 (diff)
Merge "[HICN-10] Add support for building hicn-plugin packages. Do not build packages for components without name."
Diffstat (limited to 'scripts/build-packages.sh')
-rw-r--r--scripts/build-packages.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh
index b199f99e8..e41eccc8a 100644
--- a/scripts/build-packages.sh
+++ b/scripts/build-packages.sh
@@ -21,12 +21,15 @@ apt_get=${APT_PATH:-"/usr/local/bin/apt-get"}
PACKAGECLOUD_RELEASE_REPO_DEB="https://packagecloud.io/install/repositories/fdio/release/script.deb.sh"
PACKAGECLOUD_RELEASE_REPO_RPM="https://packagecloud.io/install/repositories/fdio/release/script.rpm.sh"
+VPP_VERSION_DEB="19.01-release"
+VPP_VERSION_RPM="19.01-release.x86_64"
+
BUILD_TOOLS_UBUNTU="build-essential doxygen"
LIBSSL_LIBEVENT_UBUNTU="libevent-dev libssl-dev"
-DEPS_UBUNTU="libparc-dev libasio-dev"
+DEPS_UBUNTU="libparc-dev libasio-dev vpp-dev=${VPP_VERSION_DEB} vpp-lib=${VPP_VERSION_DEB}"
# BUILD_TOOLS_GROUP_CENTOS="'Development Tools'"
-DEPS_CENTOS="libparc-devel asio-devel centos-release-scl devtoolset-7"
+DEPS_CENTOS="vpp-devel-${VPP_VERSION_RPM} vpp-lib-${VPP_VERSION_RPM} libparc-devel asio-devel centos-release-scl devtoolset-7"
LATEST_EPEL_REPO="http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
install_cmake() {
@@ -122,7 +125,7 @@ build_package() {
mkdir -p ${SCRIPT_PATH}/../build && pushd ${SCRIPT_PATH}/../build
rm -rf *
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_VPP_PLUGIN=ON ..
make package
find . -not -name '*.deb' -not -name '*.rpm' -print0 | xargs -0 rm -rf -- || true
@@ -140,4 +143,4 @@ pushd ${SCRIPT_PATH}/..
build_package
popd
-exit 0 \ No newline at end of file
+exit 0