mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
61042a5b6a
commit
7db1cba057
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user