kernel: Let the kernel build system strip modules

Since commit 48f51f118506 we let the kernel build system compress the
modules, which makes the original strip expression not work. Let the
kernel build system strip them as well so they get stripped.

authored by Tuomas Tynkkynen and committed by Tuomas Tynkkynen 7db1cba0 61042a5b

+3 -3
+3 -3
pkgs/os-specific/linux/kernel/manual-config.nix
··· 129 129 mkdir -p $out/dtbs 130 130 cp $buildRoot/arch/$karch/boot/dts/*.dtb $out/dtbs 131 131 '' else "") + (if isModular then '' 132 + if [ -z "$dontStrip" ]; then 133 + installFlagsArray+=("INSTALL_MOD_STRIP=1") 134 + fi 132 135 make modules_install $makeFlags "''${makeFlagsArray[@]}" \ 133 136 $installFlags "''${installFlagsArray[@]}" 134 137 unlink $out/lib/modules/${modDirVersion}/build ··· 190 193 # !!! This leaves references to gcc in $dev 191 194 # that we might be able to avoid 192 195 postFixup = if isModular then '' 193 - if [ -z "$dontStrip" ]; then 194 - find $out -name "*.ko" -print0 | xargs -0 -r ''${crossConfig+$crossConfig-}strip -S 195 - fi 196 196 # !!! Should this be part of stdenv? Also patchELF should take an argument... 197 197 prefix=$dev 198 198 patchELF