Merge pull request #172131 from euank/ena-2.7.1

ena: 2.5.0 -> 2.7.1 & nixos/amazon-image: default to 5.15 kernel
This commit is contained in:
Artturi 2022-05-12 01:38:24 +03:00 committed by GitHub
commit c7b10b6df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -37,13 +37,11 @@ in
{ assertion = cfg.efi -> cfg.hvm;
message = "EC2 instances using EFI must be HVM instances.";
}
{ assertion = versionOlder config.boot.kernelPackages.kernel.version "5.15";
message = "ENA driver fails to build with kernel >= 5.15";
{ assertion = versionOlder config.boot.kernelPackages.kernel.version "5.17";
message = "ENA driver fails to build with kernel >= 5.17";
}
];
boot.kernelPackages = pkgs.linuxKernel.packages.linux_5_10;
boot.growPartition = cfg.hvm;
fileSystems."/" = mkIf (!cfg.zfs.enable) {

View File

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
version = "2.5.0";
version = "2.7.1";
name = "ena-${version}-${kernel.version}";
src = fetchFromGitHub {
owner = "amzn";
repo = "amzn-drivers";
rev = "ena_linux_${version}";
sha256 = "sha256-uOf/1624UtjaZtrk7XyQpeUGdTNVDnzZJZMgU86i+SM=";
sha256 = "sha256-JkGzmmsAmLvL9e+bg58H79GNHgsqydK/79VoWEq5/Mc=";
};
hardeningDisable = [ "pic" ];
@ -42,6 +42,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Only;
maintainers = [ maintainers.eelco ];
platforms = platforms.linux;
broken = kernel.kernelAtLeast "5.15";
broken = kernel.kernelAtLeast "5.17";
};
}