From: David Marchand Date: Thu, 13 May 2021 08:34:13 +0000 (+0200) Subject: devtools: fix orphan symbols check with busybox X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=71459555a6f8c88d3638fd857b810d4913a504e3;p=dpdk.git 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 --- 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