2 # SPDX-License-Identifier: GPL-2.0
6 # List of exported symbols
8 # If the object has no symbol, $NM warns 'no symbols'.
11 # Use -q instead of 2>/dev/null when we upgrade the minimum version of
12 # binutils to 2.37, llvm to 13.0.0.
13 ksyms=$($NM $1 2>/dev/null | sed -n 's/.*__ksym_marker_\(.*\)/\1/p')
15 if [ -z "$ksyms" ]; then
20 echo "ksymdeps_$1 := \\"
24 printf ' $(wildcard include/ksym/%s) \\\n' "$s"
28 echo "$1: \$(ksymdeps_$1)"
30 echo "\$(ksymdeps_$1):"