summaryrefslogtreecommitdiff
path: root/scripts/package-build/linux-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package-build/linux-kernel')
-rwxr-xr-xscripts/package-build/linux-kernel/build-accel-ppp-ng.sh14
1 files changed, 10 insertions, 4 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 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"