aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/function
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-09-28 15:13:31 +0000
committerPeter Mikus <pmikus@cisco.com>2018-10-01 11:22:07 +0000
commit3bd92c7d17d20cf949c20e5d0324323e5c612631 (patch)
treeafb8fd7135e70b155ffdcaacbe72eba41acfc630 /resources/libraries/bash/function
parent9e456483f9c5f648312a34257eeab48568cab993 (diff)
CSIT-1327 Migrate from vpp-dkms-dpdk to vpp-ext-deps
Change-Id: I6fad3303c5c331ad36d163ba735907e35931dea0 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/bash/function')
-rw-r--r--resources/libraries/bash/function/artifacts.sh2
-rw-r--r--resources/libraries/bash/function/per_patch.sh21
2 files changed, 12 insertions, 11 deletions
diff --git a/resources/libraries/bash/function/artifacts.sh b/resources/libraries/bash/function/artifacts.sh
index 945bdfe824..07a04c4b73 100644
--- a/resources/libraries/bash/function/artifacts.sh
+++ b/resources/libraries/bash/function/artifacts.sh
@@ -69,7 +69,7 @@ function download_ubuntu_artifacts () {
else
artifacts+=(${vpp[@]/%/=${VPP_VERSION-}})
fi
- dkms=(vpp-dpdk-dkms)
+ dkms=(vpp-ext-deps)
if [ -z "${DKMS_VERSION-}" ]; then
artifacts+=(${dkms[@]})
else
diff --git a/resources/libraries/bash/function/per_patch.sh b/resources/libraries/bash/function/per_patch.sh
index 15eaf028ee..4353a5e1a5 100644
--- a/resources/libraries/bash/function/per_patch.sh
+++ b/resources/libraries/bash/function/per_patch.sh
@@ -45,28 +45,29 @@ function build_vpp_ubuntu_amd64 () {
# The per_patch script calls this function twice, first for the new commit,
# then for its parent commit. On Jenkins, no dpdk is installed at first,
# locally it might have been installed. New dpdk is installed second call.
- # If make detects installed vpp-dpdk-dev with matching version,
- # it skips building vpp-dpdk-dkms entirely, but we need that file.
+ # If make detects installed vpp-ext-deps with matching version,
+ # it skips building vpp-ext-deps entirely, but we need that file.
# On the other hand, if parent uses different dpdk version,
- # The new vpp-dpdk-dkms is built, but the old one is not removed
+ # The new vpp-ext-deps is built, but the old one is not removed
# from the build directory if present. (Further functions move both,
# and during test dpkg decides on its own which version gets installed.)
# As per_patch is too dumb (yet) to detect any of that,
# the only safe solution is to clean build directory and force rebuild.
# TODO: Make this function smarter and skip DPDK rebuilds if possible.
- cmd=("dpkg-query" "--showformat='$${Version}'" "--show" "vpp-dpdk-dev")
+ cmd=("dpkg-query" "--showformat='$${Version}'" "--show" "vpp-ext-deps")
installed_deb_ver="$(sudo "${cmd[@]}" || true)"
if [[ -n "${installed_deb_ver}" ]]; then
- sudo dpkg --purge "vpp-dpdk-dev" || {
- die "Dpdk package uninstalation failed."
+ sudo dpkg --purge "vpp-ext-deps" || {
+ die "DPDK package uninstalation failed."
}
fi
- make UNATTENDED=yes dpdk-install-dev || {
- die "Make dpdk-install-dev failed."
+ make UNATTENDED=yes install-ext-deps || {
+ die "Make install-ext-deps failed."
}
build-root/vagrant/"build.sh" || die "Vagrant VPP build script failed."
- # CSIT also needs the DPDK artifacts, which is not in build-root.
- mv -v "dpdk/vpp-dpdk-dkms"*".deb" "build-root"/ || {
+ # CSIT also needs the external dependency artifacts, which is not in
+ # build-root.
+ mv -v "build/external/vpp-ext-deps"*".deb" "build-root"/ || {
die "*.deb move failed."
}