mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
Out-of-tree IPU7 PSys kernel module. On kernels >= 6.17 the IPU7 core and ISys ship in mainline (drivers/staging/media/ipu7) but PSys does not, so upstream's Makefile builds only PSys and links it against the in-tree core and ISys. Co-Authored-By: Ao Li <aoli.al@hotmail.com> Co-Authored-By: Atlas Yu <pseudoc@163.com>
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
kernel,
|
|
kernelModuleMakeFlags,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ipu7-drivers";
|
|
version = "0-unstable-2026-08-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "ipu7-drivers";
|
|
rev = "495acc90feb09d8008c0a6228fb8bb4c6415ca62";
|
|
hash = "sha256-a2hIJ4wMCHQeDb4gp+5pjLizJ/CCfA0JivVDWeqB4vY=";
|
|
};
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
makeFlags = kernelModuleMakeFlags ++ [
|
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
|
"KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preInstall = ''
|
|
substituteInPlace Makefile \
|
|
--replace-fail "INSTALL_MOD_DIR=" "INSTALL_MOD_PATH=$out INSTALL_MOD_DIR="
|
|
'';
|
|
|
|
installTargets = [
|
|
"modules_install"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/intel/ipu7-drivers";
|
|
description = "IPU7 kernel driver";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [
|
|
lib.maintainers.aoli-al
|
|
lib.maintainers.pseudocc
|
|
];
|
|
platforms = [ "x86_64-linux" ];
|
|
broken = kernel.kernelOlder "6.12";
|
|
};
|
|
}
|