diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2025-01-14 23:34:27 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2025-01-15 15:20:21 -0500 |
commit | 22e86dbf1638bc005dbd9beb4f392a64488cf530 (patch) | |
tree | 685d346516cbc55e5309b75023ecd3b261c13270 /jjb/scripts | |
parent | 57897ca4d35df4e3d8d433124d86ff1088dc4f35 (diff) |
feat(vpp): add vpp verify job for arm drivers
Change-Id: Iabe0e7f16e93b85e2b9a53744a6b743b30e1ea87
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'jjb/scripts')
-rwxr-xr-x | jjb/scripts/vpp/arm-drivers.sh | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/jjb/scripts/vpp/arm-drivers.sh b/jjb/scripts/vpp/arm-drivers.sh new file mode 100755 index 000000000..cd0ff5cd1 --- /dev/null +++ b/jjb/scripts/vpp/arm-drivers.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +# Copyright (c) 2025 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +echo "---> jjb/scripts/vpp/arm-drivers.sh" + +set -euxo pipefail + +line="*************************************************************************" +OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') +OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') +OS_ARCH=$(uname -m) +DRYRUN="${DRYRUN:-}" +BUILD_RESULT="SUCCESSFULLY COMPLETED" +BUILD_ERROR="" +RETVAL="0" + +make_deps() { + if ! make UNATTENDED=yes install-dep ; then + BUILD_ERROR="FAILED 'make install-dep'" + return + fi + if ! make UNATTENDED=yes install-ext-deps ; then + BUILD_ERROR="FAILED 'make install-ext-deps'" + return + fi +} +make_build_release_arm_driver() { + vpp_platform="$1" + git clean -fdx || true + if ! make UNATTENDED=yes build-release VPP_PLATFORM="$vpp_platform"; then + BUILD_ERROR="FAILED 'make build-release VPP_PLATFORM=$vpp_platform'" + return + fi +} + +if [ "${DRYRUN,,}" != "true" ] ; then + make_deps + make_build_release_arm_driver cn913x + make_build_release_arm_driver octeon9 + make_build_release_arm_driver octeon10 +fi +if [ -n "$BUILD_ERROR" ] ; then + BUILD_RESULT="$BUILD_ERROR" + RETVAL="1" +fi +echo -e "\n$line\n* VPP ${OS_ID^^}-${OS_VERSION_ID}-${OS_ARCH^^} ARM DRIVERS BUILD $BUILD_RESULT\n$line\n" +exit $RETVAL |