diff options
Diffstat (limited to 'scripts/strip-kmod.sh')
-rwxr-xr-x | scripts/strip-kmod.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 68da9e901b..57207e3ae6 100755 --- a/scripts/strip-kmod.sh +++ b/scripts/strip-kmod.sh @@ -22,6 +22,11 @@ ${CROSS}objcopy \ -G __this_module \ -x "$MODULE" "$MODULE.tmp" +[ -n "$NO_RENAME" ] && { + mv "${MODULE}.tmp" "$MODULE" + exit 0 +} + ${CROSS}nm "$MODULE.tmp" | awk ' BEGIN { n = 0 |