Blame SOURCES/brp-kmod-set-exec-bit

a0c358
#! /bin/bash -fx
7689d7
7689d7
## A hack for making brp-strip taking into account kmod files
7689d7
7689d7
# If using normal root, avoid changing anything.
7689d7
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] || exit 0
7689d7
7689d7
# Checking for required programs
7689d7
which find chmod >/dev/null || exit 0
7689d7
7689d7
find "$RPM_BUILD_ROOT" \
7689d7
	-name '*.ko' \
7689d7
	-printf '%#m %P\n' \
7689d7
	-exec chmod u+x '{}' \; > "$RPM_BUILD_ROOT/kmod-permissions.list"