-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mem-encryption-tests: init at 0-master-2022-12-07
- Loading branch information
1 parent
6792739
commit d464a1d
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ lib, stdenv, fetchFromGitHub, linuxPackages, kernel ? linuxPackages.kernel }: | ||
|
||
stdenv.mkDerivation { | ||
pname = "mem-encryption-tests"; | ||
version = "0-master-2022-12-07"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "AMDESE"; | ||
repo = "mem-encryption-tests"; | ||
rev = "7abb072ffc50ceb0b4145ae84105ce6c91bd1ff4"; | ||
sha256 = "sha256:1i4x1ar05yjaw03997l530f87xfj1b2qhh2kiw42swisb8d80hmz"; | ||
}; | ||
|
||
nativeBuildInputs = kernel.moduleBuildDependencies; | ||
|
||
makeFlags = kernel.makeFlags ++ [ | ||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" | ||
"INSTALL_MOD_PATH=$(out)" | ||
]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/extra | ||
cp tsme-test.ko $out/lib/modules/${kernel.modDirVersion}/extra | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Tests related to AMD Memory Encryption"; | ||
license = licenses.gpl2; | ||
maintainers = with maintainers; [ lyn ]; | ||
platforms = platforms.linux; | ||
longDescription = '' | ||
This includes: | ||
tsme-test - A loadable kernel module that can be used to determine the state of TSME. | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters