File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
os-specific/linux/tsme-test Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 615
615
616
616
msi-ec = callPackage ../os-specific/linux/msi-ec { } ;
617
617
618
+ tsme-test = callPackage ../os-specific/linux/tsme-test { } ;
619
+
618
620
} // lib . optionalAttrs config . allowAliases {
619
621
ati_drivers_x11 = throw "ati drivers are no longer supported by any kernel >=4.1" ; # added 2021-05-18;
620
622
hid-nintendo = throw "hid-nintendo was added in mainline kernel version 5.16" ; # Added 2023-07-30
You can’t perform that action at this time.
0 commit comments