diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-08-08 08:49:54 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-08-08 22:39:53 +0200 |
| commit | 62f7a2bac4d4040928c9772495d8f69c84610fc5 (patch) | |
| tree | 9c9f6b15d41858c0571848f9ab399f0c6c009e48 /scripts/package-build/linux-kernel | |
| parent | 76334177081c4ecedbe50cf3d7cbcd7b75bf36ac (diff) | |
| download | vyos-build-62f7a2bac4d4040928c9772495d8f69c84610fc5.tar.gz vyos-build-62f7a2bac4d4040928c9772495d8f69c84610fc5.zip | |
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.
Diffstat (limited to 'scripts/package-build/linux-kernel')
| -rwxr-xr-x | scripts/package-build/linux-kernel/build-accel-ppp-ng.sh | 14 |
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" |
