linux: fix builds for old LTS kernels
This commit is contained in:
parent
a31235135c
commit
fd53244bec
|
@ -108,6 +108,10 @@ let
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
sed -i Makefile -e 's|= depmod|= ${buildPackages.kmod}/bin/depmod|'
|
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.
|
# 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
|
# This way kernels can be bit-by-bit reproducible depending on settings
|
||||||
# (e.g. MODULE_SIG and SECURITY_LOCKDOWN_LSM need to be disabled).
|
# (e.g. MODULE_SIG and SECURITY_LOCKDOWN_LSM need to be disabled).
|
||||||
|
|
Loading…
Reference in a new issue