From e83b5f0a52b0a704a95367d73c4ca617c23f13b2 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 10 May 2022 18:09:59 +0200 Subject: 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 --- mbuto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbuto b/mbuto index b4a7cc0..0e8aa79 100755 --- a/mbuto +++ b/mbuto @@ -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}" ;; -- cgit v1.2.3