zfs: strip debug symbols
initrd-linux: -12427.8 KiB linux: -12419.3 KiB nc2k9ym14spzz2pgq6hn84k8k9zgf686: ∅ → ε, +102451.2 KiB nixos-system-turingmachine: 21.11.20211015.a2dcfa2 → 21.11.20211017.c6f77b7 visjwxsjqmh8c9lxnrxsw5w19zszflm6: ε → ∅, -102451.0 KiB zfs-kernel: -12419.3 KiB
This commit is contained in:
parent
9aeeb7574f
commit
eefdd9ffb2
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ let
|
||||||
"INSTALL_MOD_PATH=\${out}"
|
"INSTALL_MOD_PATH=\${out}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postBuild = optionalString buildKernel ''
|
||||||
|
find . -name "*.ko" -print0 | xargs -0 -P$NIX_BUILD_CORES strip --strip-debug
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = optionalString buildKernel ''
|
postInstall = optionalString buildKernel ''
|
||||||
# Add reference that cannot be detected due to compressed kernel module
|
# Add reference that cannot be detected due to compressed kernel module
|
||||||
mkdir -p "$out/nix-support"
|
mkdir -p "$out/nix-support"
|
||||||
|
|
Loading…
Reference in a new issue