linuxPackages.tsme-test: init at 6.6.68-unstable-2022-12-07 (#351062)

authored by Arne Keller and committed by GitHub a04634d3 a0b2ae3e

+46
+6
maintainers/maintainer-list.nix
··· 13634 githubId = 7910815; 13635 name = "Alex McGrath"; 13636 }; 13637 lyndeno = { 13638 name = "Lyndon Sanche"; 13639 email = "lsanche@lyndeno.ca";
··· 13634 githubId = 7910815; 13635 name = "Alex McGrath"; 13636 }; 13637 + lyn = { 13638 + name = "Lyn"; 13639 + matrix = "@lynatic:catgirl.cloud"; 13640 + github = "lynatic1337"; 13641 + githubId = 39234676; 13642 + }; 13643 lyndeno = { 13644 name = "Lyndon Sanche"; 13645 email = "lsanche@lyndeno.ca";
+38
pkgs/os-specific/linux/tsme-test/default.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + kernel, 6 + }: 7 + 8 + stdenv.mkDerivation { 9 + pname = "tsme-test"; 10 + version = "${kernel.version}-unstable-2022-12-07"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "AMDESE"; 14 + repo = "mem-encryption-tests"; 15 + rev = "7abb072ffc50ceb0b4145ae84105ce6c91bd1ff4"; 16 + hash = "sha256-v0KAGlo6ci0Ij1NAiMUK0vWDHBiFnpQG4Er6ArIKncQ="; 17 + }; 18 + 19 + nativeBuildInputs = kernel.moduleBuildDependencies; 20 + 21 + makeFlags = kernel.makeFlags ++ [ 22 + "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" 23 + ]; 24 + 25 + installPhase = '' 26 + runHook preInstall 27 + install -Dm644 -t $out/lib/modules/${kernel.modDirVersion}/extra tsme-test.ko 28 + runHook postInstall 29 + ''; 30 + 31 + meta = { 32 + description = "Kernel driver to test the status of AMD TSME (Transparent Secure Memory Encryption)"; 33 + license = lib.licenses.gpl2Only; 34 + maintainers = with lib.maintainers; [ lyn ]; 35 + platforms = lib.platforms.linux; 36 + homepage = "https://github.com/AMDESE/mem-encryption-tests"; 37 + }; 38 + }
+2
pkgs/top-level/linux-kernels.nix
··· 615 616 msi-ec = callPackage ../os-specific/linux/msi-ec { }; 617 618 } // lib.optionalAttrs config.allowAliases { 619 ati_drivers_x11 = throw "ati drivers are no longer supported by any kernel >=4.1"; # added 2021-05-18; 620 hid-nintendo = throw "hid-nintendo was added in mainline kernel version 5.16"; # Added 2023-07-30
··· 615 616 msi-ec = callPackage ../os-specific/linux/msi-ec { }; 617 618 + tsme-test = callPackage ../os-specific/linux/tsme-test { }; 619 + 620 } // lib.optionalAttrs config.allowAliases { 621 ati_drivers_x11 = throw "ati drivers are no longer supported by any kernel >=4.1"; # added 2021-05-18; 622 hid-nintendo = throw "hid-nintendo was added in mainline kernel version 5.16"; # Added 2023-07-30