[PATCH v3 8/9] ci: make ABI reference generation faster
David Marchand
david.marchand at redhat.com
Mon Sep 21 13:47:35 CEST 2026
Regenerating ABI is not something we do often, but when working on ABI
topics, a lot of time may be wasted on waiting for the reference being
generated.
We only care about shared libraries, avoid building final applications
or examples.
And we don't need to double check headers in the ABI reference.
Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
Changes since v2:
- removed unneeded -Dtests=
---
.ci/linux-build.sh | 10 +++++++++-
devtools/test-meson-builds.sh | 5 ++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index e0b914a142..c789111a79 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -201,9 +201,17 @@ if [ "$ABI_CHECKS" = "true" ]; then
fi
if [ ! -d reference ]; then
+ REF_OPTS="$OPTS"
+ # We only care about the drivers and libs, disable developer checks and
+ # don't try to link apps.
+ REF_OPTS="$REF_OPTS -Dcheck_includes=false"
+ REF_OPTS="$REF_OPTS -Ddeveloper_mode=disabled"
+ REF_OPTS="$REF_OPTS -Ddisable_apps=*"
+ REF_OPTS="$REF_OPTS -Denable_docs=false"
+ REF_OPTS="$REF_OPTS -Dexamples="
refsrcdir=$(readlink -f $(pwd)/../dpdk-$REF_GIT_TAG)
git clone --single-branch -b "$REF_GIT_TAG" $REF_GIT_REPO $refsrcdir
- meson setup $OPTS -Dexamples= $refsrcdir $refsrcdir/build
+ meson setup $REF_OPTS $refsrcdir $refsrcdir/build
ninja -C $refsrcdir/build
DESTDIR=$(pwd)/reference meson install -C $refsrcdir/build
find reference/usr/local -name '*.a' -delete
diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh
index 11e4be3f88..501034f398 100755
--- a/devtools/test-meson-builds.sh
+++ b/devtools/test-meson-builds.sh
@@ -206,8 +206,11 @@ build () # <directory> <target cc | cross file> <ABI check> [meson options]
fi
rm -rf $abirefdir/build
+ # We only care about the drivers and libs, disable
+ # developer checks and don't try to link apps.
config $abirefdir/src $abirefdir/build ABI $cross \
- -Dexamples= $*
+ $* -Dcheck_includes=false -Ddeveloper_mode=disabled \
+ -Ddisable_apps=* -Dexamples=
compile $abirefdir/build
install_target $abirefdir/build $abirefdir/$targetdir
--
2.54.0
More information about the dev
mailing list