mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
linux: fix builds for old LTS kernels
This commit is contained in:
parent
a31235135c
commit
fd53244bec
@ -108,6 +108,10 @@ let
|
||||
prePatch = ''
|
||||
sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
|
||||
|
||||
# fixup for pre-5.4 kernels using the $(cd $foo && /bin/pwd) pattern
|
||||
# FIXME: remove when no longer needed
|
||||
substituteInPlace Makefile tools/scripts/Makefile.include --replace /bin/pwd pwd
|
||||
|
||||
# Don't include a (random) NT_GNU_BUILD_ID, to make the build more deterministic.
|
||||
# This way kernels can be bit-by-bit reproducible depending on settings
|
||||
# (e.g. MODULE_SIG and SECURITY_LOCKDOWN_LSM need to be disabled).
|
||||
|
Loading…
Reference in New Issue
Block a user