summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-15 09:59:48 +0000
committerChristian Breunig <christian@breunig.cc>2026-02-17 16:16:49 +0100
commitc1806aa39cdedd0345fe0b58ab9a3dadd07dcd7e (patch)
treec01a21690a27e0513081c5222ee1a77bb681a96e /scripts
parentd86559a5cf1c008305d88ea117c22c2aeac31a5e (diff)
downloadvyos-build-c1806aa39cdedd0345fe0b58ab9a3dadd07dcd7e.tar.gz
vyos-build-c1806aa39cdedd0345fe0b58ab9a3dadd07dcd7e.zip
accel-ppp: T8134: fail build early if source dir is missing
Fail vefore building VPP to not waste time.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package-build/linux-kernel/build-accel-ppp-ng.sh19
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh b/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh
index 0f5292b8..69e2cf30 100755
--- a/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh
+++ b/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh
@@ -8,6 +8,15 @@ VPP_LIBRARY_PATH="${CWD}/../vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/d
VPP_LIB_CHECK_PATH="${CWD}/../vpp/vpp/build-root/build-vpp-native/vpp/CMakeFiles/debian/libvppinfra/usr/lib/${ARCH_TRIPLET}"
ACCEL_SRC=${CWD}/accel-ppp-ng
+if [ ! -d ${ACCEL_SRC} ]; then
+ echo "Accel-PPP source not found"
+ exit 1
+fi
+
+if [ ! -f ${KERNEL_VAR_FILE} ]; then
+ echo "Kernel variable file '${KERNEL_VAR_FILE}' does not exist, run ./build_kernel.sh first"
+ exit 1
+fi
# Build VPP as we need VPP libraries
cd ../vpp/
@@ -19,16 +28,6 @@ if [ ! -d ${VPP_LIB_CHECK_PATH} ]; then
exit 1
fi
-if [ ! -d ${ACCEL_SRC} ]; then
- echo "Accel-PPP source not found"
- exit 1
-fi
-
-if [ ! -f ${KERNEL_VAR_FILE} ]; then
- echo "Kernel variable file '${KERNEL_VAR_FILE}' does not exist, run ./build_kernel.sh first"
- exit 1
-fi
-
cd ${ACCEL_SRC}
git reset --hard HEAD
git clean --force -d -x