[v4,1/4] devtools: bug fix for gen-abi.sh
Checks
Commit Message
This patch fixes a bug with the gen-abi.sh script in devtools.
When ran on an install directory the script would try to generate
.dump files from directories as well as the .so files which is
not correct.
Example error: abidw: gcc/lib/librte_net.so.21.0.p is not a regular file
To rectify this the regex that finds the appropriate .so files has been
changed and the file test has been removed.
This change was tested with the ABI_CHECK Travis checks in DPDK 20.08.
Travis build:
https://travis-ci.com/github/conorwalsh-intel/dpdk/jobs/382812849
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
---
devtools/gen-abi.sh | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
@@ -16,11 +16,7 @@ fi
dumpdir=$installdir/dump
rm -rf $dumpdir
mkdir -p $dumpdir
-for f in $(find $installdir -name "*.so.*"); do
- if test -L $f; then
- continue
- fi
-
+for f in $(find $installdir -name "*.so"); do
libname=$(basename $f)
abidw --out-file $dumpdir/${libname%.so*}.dump $f
done