fix hardened kernel (#48)

This commit is contained in:
sempiternal-aurora 2026-03-14 15:37:52 +11:00 committed by GitHub
parent fc5803132d
commit 259b31bc70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,6 +146,15 @@ lib.makeOverridable (
// (lib.optionalAttrs (autofdo != false) { // (lib.optionalAttrs (autofdo != false) {
AUTOFDO_CLANG = lib.kernel.yes; AUTOFDO_CLANG = lib.kernel.yes;
}) })
// (lib.optionalAttrs (hardened != false) {
# required because hardened kernels use the latent entropy gcc plugin
# which the rust bindgen currently doesn't support. They're waiting on
# this patch to be merged:
# https://lore.kernel.org/all/20251221081659.1742800-1-stijn@linux-ipv6.be/
# from what I can see, this still hasn't been merged into 7.0, so may
# be a bit
RUST = lib.kernel.no;
})
)) ))
# Apply user custom settings # Apply user custom settings