From c1806aa39cdedd0345fe0b58ab9a3dadd07dcd7e Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 15 Feb 2026 09:59:48 +0000 Subject: accel-ppp: T8134: fail build early if source dir is missing Fail vefore building VPP to not waste time. --- .../package-build/linux-kernel/build-accel-ppp-ng.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'scripts/package-build') 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 -- cgit v1.2.3