Disable ISA optimisation
This commit is contained in:
parent
0e76dd8ec1
commit
984eaf1e99
1 changed files with 4 additions and 5 deletions
|
@ -14,7 +14,7 @@
|
|||
eachSystem = lib.genAttrs [ "x86_64-linux" ];
|
||||
legacyPackages = eachSystem (system: import nixpkgs { inherit system; });
|
||||
|
||||
linux-hardened = pkgs: arch: configfile:
|
||||
linux-hardened = pkgs: configfile:
|
||||
let
|
||||
inherit (pkgs) linuxKernel fetchFromGitHub overrideCC;
|
||||
inherit (pkgs.llvmPackages_latest) clangUseLLVM bintools;
|
||||
|
@ -33,8 +33,7 @@
|
|||
stdenv = overrideCC pkgs.stdenv
|
||||
(clangUseLLVM.override { inherit bintools; });
|
||||
|
||||
extraMakeFlags =
|
||||
[ "LLVM=1" "KCFLAGS=-march=${arch}" ];
|
||||
extraMakeFlags = [ "LLVM=1" ];
|
||||
|
||||
isHardened = true;
|
||||
inherit configfile features;
|
||||
|
@ -50,9 +49,9 @@
|
|||
pkgs = legacyPackages.x86_64-linux;
|
||||
in {
|
||||
qemu-virtio =
|
||||
linux-hardened pkgs "x86-64-v3" ./x86-64/qemu-virtio;
|
||||
linux-hardened pkgs ./x86-64/qemu-virtio;
|
||||
thinkpad-x1-extreme-gen5 =
|
||||
linux-hardened pkgs "alderlake" ./x86-64/thinkpad-x1-extreme-gen5;
|
||||
linux-hardened pkgs ./x86-64/thinkpad-x1-extreme-gen5;
|
||||
};
|
||||
|
||||
devShells.x86_64-linux =
|
||||
|
|
Loading…
Reference in a new issue