linux: remove hack for old kernels

The oldest kernel supported in Nixpkgs is now 4.19 LTS, so we don't
need this any more.
This commit is contained in:
Alyssa Ross 2023-10-21 09:15:48 +00:00
parent b15687da28
commit 96fe81f17c

View File

@ -120,10 +120,6 @@ let
# Ensure that depmod gets resolved through PATH
sed -i Makefile -e 's|= /sbin/depmod|= depmod|'
# fixup for pre-4.15 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).