From 71459555a6f8c88d3638fd857b810d4913a504e3 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 13 May 2021 10:34:13 +0200 Subject: [PATCH] devtools: fix orphan symbols check with busybox Avoid relying on GNU grep --exclude option. Fixes: f8ad40dc998c ("devtools: check orphan symbols in map files") Cc: stable@dpdk.org Signed-off-by: David Marchand --- devtools/check-symbol-maps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devtools/check-symbol-maps.sh b/devtools/check-symbol-maps.sh index f06353fc75..055db24472 100755 --- a/devtools/check-symbol-maps.sh +++ b/devtools/check-symbol-maps.sh @@ -20,8 +20,7 @@ find_orphan_symbols () else symsrc=$sym fi - if ! grep -q -r --exclude=$(basename $map) \ - -w $symsrc $(dirname $map) ; then + if [ -z "$(grep -rlw $symsrc $(dirname $map) | grep -v $map)" ] ; then echo "$map: $sym" fi done -- 2.20.1