git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #12778 from dezgeg/pr-kernel-module-strip

kernel: Let the kernel build system strip modules

commitcf5c8085b6ebabf490f4347fe78ae6b667c6101a authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 2 Feb 2016, 22:36 (11 years ago) parent1a70f267db1cba
1 file changed+3−3
pkgs/os-specific/linux/kernel/manual-config.nix+3−3
pkgs/os-specific/linux/kernel/manual-config.nix+3−3
@@ -129,6 +129,9 @@ let
129129 mkdir -p $out/dtbs
130130 cp $buildRoot/arch/$karch/boot/dts/*.dtb $out/dtbs
131131 '' else "") + (if isModular then ''
132+ if [ -z "$dontStrip" ]; then
133+ installFlagsArray+=("INSTALL_MOD_STRIP=1")
134+ fi
132135 make modules_install $makeFlags "''${makeFlagsArray[@]}" \
133136 $installFlags "''${installFlagsArray[@]}"
134137 unlink $out/lib/modules/${modDirVersion}/build
@@ -190,9 +193,6 @@ let
190193 # !!! This leaves references to gcc in $dev
191194 # that we might be able to avoid
192195 postFixup = if isModular then ''
193− if [ -z "$dontStrip" ]; then
194− find $out -name "*.ko" -print0 | xargs -0 -r ''${crossConfig+$crossConfig-}strip -S
195− fi
196196 # !!! Should this be part of stdenv? Also patchELF should take an argument...
197197 prefix=$dev
198198 patchELF