Skip to content

Commit

Permalink
devtools: fix orphan symbols check with busybox
Browse files Browse the repository at this point in the history
[ upstream commit 7145955 ]

Avoid relying on GNU grep --exclude option.

Fixes: f8ad40d ("devtools: check orphan symbols in map files")

Signed-off-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
david-marchand authored and steevenlee committed Jun 8, 2021
1 parent 934abbb commit 18918e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions devtools/check-symbol-maps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18918e1

Please sign in to comment.