Merge: linuxPackages.tt-kmd: init at 2.0.0 (#421385)
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
kernel,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tt-kmd";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tenstorrent";
|
||||
repo = "tt-kmd";
|
||||
tag = "ttkmd-${finalAttrs.version}";
|
||||
hash = "sha256-Y85857oWzsltRyRWpK8Wi0H38mBFwqM3+iXkwVK4DPY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
buildFlags = [
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installFlags = finalAttrs.buildFlags ++ [
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
"INSTALL_MOD_DIR=misc"
|
||||
];
|
||||
|
||||
installTargets = [ "modules_install" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/udev/rules.d
|
||||
cp udev-50-tenstorrent.rules $out/lib/udev/rules.d/50-tenstorrent.rules
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tenstorrent Kernel Module";
|
||||
homepage = "https://github.com/tenstorrent/tt-kmd";
|
||||
maintainers = with lib.maintainers; [ RossComputerGuy ];
|
||||
license = with lib.licenses; [ gpl2Only ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
@@ -610,6 +610,8 @@ in
|
||||
|
||||
tp_smapi = callPackage ../os-specific/linux/tp_smapi { };
|
||||
|
||||
tt-kmd = callPackage ../os-specific/linux/tt-kmd { };
|
||||
|
||||
turbostat = callPackage ../os-specific/linux/turbostat { };
|
||||
|
||||
corefreq = callPackage ../os-specific/linux/corefreq { };
|
||||
|
||||
Reference in New Issue
Block a user