linuxPackages.ipu6-drivers: fix build on Linux >= 6.12

There's been some header files being moved around, and these paches are
necessary to build on Linux >= 6.12.

Tested compilation with 6.11 and 6.12.
This commit is contained in:
Florian Klink 2024-11-18 20:34:51 +02:00
parent f93401eeed
commit 162195d35b

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, ivsc-driver
, kernel
}:
@ -16,7 +17,21 @@ stdenv.mkDerivation rec {
hash = "sha256-xdMwINoKrdRHCPMpdZQn86ATi1dAXncMU39LLXS16mc=";
};
patches = [ "${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch" ];
patches = [
"${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch"
# Fix compilation with kernels >= 6.12
# https://github.com/intel/ipu6-drivers/pull/283
(fetchpatch {
url = "https://github.com/intel/ipu6-drivers/pull/283/commits/391832777148e8e59ebf08e5d04f87dc8f3cef5b.patch";
hash = "sha256-oC7wn4jrHNtvsgouq7F+ufIE02pJcm42ZmgU2TrAvjA=";
})
(fetchpatch {
url = "https://github.com/intel/ipu6-drivers/pull/283/commits/5379758bcb21be56b600817edf989dcc2c1775cf.patch";
hash = "sha256-9nOm0ffSNoyVV1y4J6RKBVRVYRxrEPOnggFXGIExLxs=";
})
];
postPatch = ''
cp --no-preserve=mode --recursive --verbose \