drm/panfrost: Remove set but not used variable 'bo'
[linux/fpc-iii.git] / scripts / gen_ksymdeps.sh
blob1324986e1362c594ee48bc7da8f13828d5179ca8
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 set -e
6 # List of exported symbols
7 ksyms=$($NM $1 | sed -n 's/.*__ksym_marker_\(.*\)/\1/p' | tr A-Z a-z)
9 if [ -z "$ksyms" ]; then
10 exit 0
13 echo
14 echo "ksymdeps_$1 := \\"
16 for s in $ksyms
18 echo $s | sed -e 's:^_*: $(wildcard include/ksym/:' \
19 -e 's:__*:/:g' -e 's/$/.h) \\/'
20 done
22 echo
23 echo "$1: \$(ksymdeps_$1)"
24 echo
25 echo "\$(ksymdeps_$1):"