2008-07-18 12:15:21 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
IFS=$'\n'
|
|
|
|
filelist=($(cat))
|
|
|
|
|
|
|
|
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/find-provides "$@"
|
|
|
|
|
2008-10-28 00:21:37 +01:00
|
|
|
sourcedir=${0%/*}
|
|
|
|
flavor=${1##*-}
|
|
|
|
|
|
|
|
tmpdir=$(mktemp -dt ${0##*/}.XXXXXXXXXX)
|
|
|
|
trap "rm -rf $tmpdir" EXIT
|
|
|
|
|
2008-07-18 12:15:21 +02:00
|
|
|
for file in "${filelist[@]}"; do
|
2008-10-28 00:21:37 +01:00
|
|
|
case "$file" in
|
|
|
|
*/boot/symvers-*.gz)
|
|
|
|
zcat "$file" \
|
|
|
|
| awk '$3 == "vmlinux" || $3 ~ /\/built-in$/ { print }'
|
2008-07-18 12:15:21 +02:00
|
|
|
;;
|
2008-10-28 00:21:37 +01:00
|
|
|
*.ko)
|
|
|
|
$sourcedir/list-exported-symbols $file
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done \
|
|
|
|
| $sourcedir/split-into-symsets $tmpdir
|
|
|
|
|
|
|
|
shopt -s nullglob
|
|
|
|
for symset in $tmpdir/*; do
|
|
|
|
class=${symset##*/} ; class=${class%.*}
|
|
|
|
echo "kernel($flavor:$class) = ${symset##*.}"
|
2008-07-18 12:15:21 +02:00
|
|
|
done
|