You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
398 B
15 lines
398 B
#! /bin/bash -efux
|
|
|
|
## A hack for making brp-strip taking into account kmod files
|
|
|
|
# If using normal root, avoid changing anything.
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] || exit 0
|
|
|
|
# Checking for required programs
|
|
which find chmod >/dev/null || exit 0
|
|
|
|
find "$RPM_BUILD_ROOT" \
|
|
-name '*.ko' \
|
|
-printf '%#m %P\n' \
|
|
-exec chmod u+x '{}' \; > "$RPM_BUILD_ROOT/kmod-permissions.list"
|