kernel: Let the kernel build system strip modules

Since commit 48f51f1185 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.
This commit is contained in:
Tuomas Tynkkynen 2015-07-26 02:36:19 +03:00 committed by Tuomas Tynkkynen
parent 61042a5b6a
commit 7db1cba057

View File

@ -129,6 +129,9 @@ let
mkdir -p $out/dtbs
cp $buildRoot/arch/$karch/boot/dts/*.dtb $out/dtbs
'' else "") + (if isModular then ''
if [ -z "$dontStrip" ]; then
installFlagsArray+=("INSTALL_MOD_STRIP=1")
fi
make modules_install $makeFlags "''${makeFlagsArray[@]}" \
$installFlags "''${installFlagsArray[@]}"
unlink $out/lib/modules/${modDirVersion}/build
@ -190,9 +193,6 @@ let
# !!! This leaves references to gcc in $dev
# that we might be able to avoid
postFixup = if isModular then ''
if [ -z "$dontStrip" ]; then
find $out -name "*.ko" -print0 | xargs -0 -r ''${crossConfig+$crossConfig-}strip -S
fi
# !!! Should this be part of stdenv? Also patchELF should take an argument...
prefix=$dev
patchELF