Blame SOURCES/kabi.sh

837a2d
#!/bin/bash +x
837a2d
#
837a2d
# kabi.sh - Automatically extract any kernel symbol checksum from the
837a2d
#           symvers file and add to RPM deps.  This is used to move the
837a2d
#           checksum checking from modprobe to rpm install for 3rd party
837a2d
#           modules (so they can fail during install and not at load).
837a2d
837a2d
IFS=$'\n'
837a2d
837a2d
for symvers in $(grep -E '(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz') "$@";
837a2d
do
837a2d
	# We generate dependencies only for symbols exported by vmlinux itself
837a2d
	# and not for kmods here as they are spread across subpackages,
837a2d
	# so Provides: generation for kmods is handled by find-provides.ksyms.
837a2d
	zcat $symvers | awk '/[^	]*	[^	]*	vmlinux	.*/ { print "kernel(" $2 ") = " $1 }'
837a2d
done