aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-02-01 09:40:26 +0000
committerMauro Sardara <msardara@cisco.com>2019-02-01 09:59:01 +0000
commit1dea17fe921e1f94db63e4c563fe08dd25734900 (patch)
tree2875c75d595643c549e0dbb50235ae27a8a68090 /scripts
parentc793ea85f8375013abaf2c6fb43347f935558276 (diff)
[HICN-10] Add support for building hicn-plugin packages. Do not build packages for components without name.
Change-Id: I11eff1b9dc6e71e079baf65703192a7cbfb565e8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'scripts')
-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