diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-05-10 18:09:59 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-05-10 18:09:59 +0200 |
commit | e83b5f0a52b0a704a95367d73c4ca617c23f13b2 (patch) | |
tree | ced9d1b7986c0a8c2ace46d5ac9f11a2a7e4c5f7 | |
parent | df100318909313694b45ee00983c014b2fd3bbeb (diff) | |
download | mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.gz mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.bz2 mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.lz mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.xz mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.tar.zst mbuto-e83b5f0a52b0a704a95367d73c4ca617c23f13b2.zip |
mbuto: Don't strip kernel modules on -d, avoid variable name clash
The kselftests profile shouldn't strip modules if the -d flag is
passed. While at it, rename STRIP (set to 'n' if stripping is
disabled) to NOSTRIP (set to 'y' if stripping is disabled), to avoid
a name clash with the variable holding the 'strip' command path.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-x | mbuto | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -257,7 +257,7 @@ profile_kselftests() { KMODS="$(${FIND} "${MODDIR}" ${__find_pattern} | ${TR} '\n' ' ')" - workers kmod_strip_worker + [ "${NOSTRIP}" != "y" ] && workers kmod_strip_worker KMODS="$(${BASENAME} -a -s .ko ${KMODS})" @@ -1079,7 +1079,7 @@ cmds() { add "${arg}" done - [ "${STRIP}" != "n" ] && strip_all + [ "${NOSTRIP}" != "y" ] && strip_all if [ -z "${ARCHIVEMOUNT}" ]; then ( __out="$("${REALPATH}" "${OUT}")" @@ -1197,7 +1197,7 @@ fi while getopts :c:df:k:m:p:s:vh __opt; do case ${__opt} in c) COMPRESS="${OPTARG}" ;; - d) STRIP="n" ;; + d) NOSTRIP="y" ;; f) OUT="${OPTARG}" ;; k) KERNEL="${OPTARG}" ;; m) MODDIR="${OPTARG}" ;; |