mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-12 23:48:25 +03:00
Merge pull request #228018 from amjoseph-nixpkgs/pr/fix/224694
lib/systems: strip kernel to avoid reference cycles
This commit is contained in:
commit
12475801fa
@ -373,11 +373,20 @@ stdenv.mkDerivation ({
|
||||
|
||||
# Remove reference to kmod
|
||||
sed -i Makefile -e 's|= ${buildPackages.kmod}/bin/depmod|= depmod|'
|
||||
''
|
||||
# unfortunately linux/arch/mips/Makefile does not understand installkernel
|
||||
# and simply copies to $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE)
|
||||
+ lib.optionalString stdenv.hostPlatform.isMips ''
|
||||
mv $out/vmlinux-* $out/vmlinux || true
|
||||
mv $out/vmlinuz-* $out/vmlinuz || true
|
||||
mv $out/System.map-* $out/System.map
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
# Don't strip $dev/lib/modules/*/vmlinux
|
||||
stripDebugList="$(cd $dev && echo lib/modules/*/build/*/)"
|
||||
'' + lib.optionalString (stdenv.hostPlatform.isMips) ''
|
||||
$STRIP -s $out/vmlinux || true
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
Loading…
Reference in New Issue
Block a user