From 62f7a2bac4d4040928c9772495d8f69c84610fc5 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 8 Aug 2026 08:49:54 +0000 Subject: Kernel: T9181: skip redundant VPP rebuild for accel-ppp-ng Accel-PPP-ng only links against a few VPP libraries, but the build triggered a full VPP package rebuild (make pkg-deb) on every run, with no caching. Skip that step when the required VPP libraries already exist from a previous run. Delete them to force a rebuild. --- scripts/package-build/linux-kernel/build-accel-ppp-ng.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'scripts/package-build/linux-kernel') 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 aa1f8d12..bd724d8d 100755 --- a/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh +++ b/scripts/package-build/linux-kernel/build-accel-ppp-ng.sh @@ -18,10 +18,16 @@ if [ ! -f ${KERNEL_VAR_FILE} ]; then exit 1 fi -# Build VPP as we need VPP libraries -cd ../vpp/ -./build.py -cd ${CWD} +# Build VPP as we need VPP libraries. This is a full VPP build (make pkg-deb), +# not just headers, since that's the only build target VPP exposes here - skip +# it if a previous run already produced the libraries we link against. Remove +# ${VPP_LIB_CHECK_PATH} (or the whole ../vpp/vpp checkout) to force a rebuild, +# e.g. after bumping the VPP commit_id in ../vpp/package.toml. +if [ ! -d ${VPP_LIB_CHECK_PATH} ]; then + cd ../vpp/ + ./build.py + cd ${CWD} +fi if [ ! -d ${VPP_LIB_CHECK_PATH} ]; then echo "VPP source libraries not found" -- cgit v1.2.3