From a5f476156096721b646e7e55c4525a8ada267729 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Wed, 14 Feb 2018 13:33:12 +0100 Subject: [PATCH] scripts/image: use kernel toolchain to strip modules Signed-off-by: Matthias Reichl --- scripts/image | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/image b/scripts/image index 550d6fb8a8..21a20c1f5e 100755 --- a/scripts/image +++ b/scripts/image @@ -230,11 +230,8 @@ find $INSTALL/usr/lib/kernel-overlays/base/lib/modules/$MODVER/ -name *.ko | \ $TOOLCHAIN/bin/depmod -b $INSTALL/usr/lib/kernel-overlays/base -a -e -F "$BUILD/linux-$(kernel_version)/System.map" $MODVER # strip kernel modules -if [ "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then - STRIP=$TOOLCHAIN/lib/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-gnu-strip -fi for MOD in `find $INSTALL/usr/lib/kernel-overlays/ -type f -name *.ko`; do - $STRIP --strip-debug $MOD + ${TARGET_KERNEL_PREFIX}strip --strip-debug $MOD done # symlink overlayed modules to /usr/lib/modules