Merge pull request #141048 from lopsided98/kernel-zlib-cleanup

linux: cleanup zlib conditional dependency
This commit is contained in:
Bernardo Meurer 2021-10-09 13:12:10 -07:00 committed by GitHub
commit f888c2ca82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -315,9 +315,8 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.linux-kernel kernelPat
++ optional (lib.versionAtLeast version "4.14" && lib.versionOlder version "5.8") libelf
# Removed util-linuxMinimal since it should not be a dependency.
++ optionals (lib.versionAtLeast version "4.16") [ bison flex ]
++ optionals (lib.versionAtLeast version "5.2") [ cpio pahole ]
++ optionals (lib.versionAtLeast version "5.2") [ cpio pahole zlib ]
++ optional (lib.versionAtLeast version "5.8") elfutils
++ optional (lib.versionAtLeast version "5.2") zlib
;
hardeningDisable = [ "bindnow" "format" "fortify" "stackprotector" "pic" "pie" ];