blob: 3ba7310faa9e5a0da47c168422476a57bc231003 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ stdenv, fetchurl }:
let
bfqVersion = "v7r5";
kernelVersion = "3.15";
version = "${kernelVersion}.0-${bfqVersion}";
baseURL = "http://algo.ing.unimo.it/people/paolo/disk_sched/patches";
fetchPatch = { name, sha256 }: fetchurl {
url = "${baseURL}/${version}/${name}.patch";
inherit sha256;
};
allPatches = [
(fetchPatch {
name = "0001-block-cgroups-kconfig-build-bits-for-BFQ-"
+ "${bfqVersion}-${kernelVersion}";
sha256 = "16vrdg9ky7q89sb7gp8as7qslqg1zy1n28cnyshm91qnf49wfh7g";
})
(fetchPatch {
name = "0002-block-introduce-the-BFQ-"
+ "${bfqVersion}-I-O-sched-for-${kernelVersion}";
sha256 = "1gf4y5i9prhg9ls2g8apaiygm538khhpp35dahgv59hr3sfwsghs";
})
(fetchPatch {
name = "0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-"
+ "${bfqVersion}-for-${kernelVersion}.0";
sha256 = "1q3fn6gl3lhvbqfhaarpv399id9sa32zx6ygqx4x98zmixwrsn9z";
})
./bfqsched.patch
];
patch = stdenv.mkDerivation {
name = "bfqsched-${version}.patch";
inherit allPatches;
buildCommand = ''
sed -e 's/IS_SUBSYS_ENABLED/IS_ENABLED/' \
-e '/SUBSYS/s/perf/&_event/' $allPatches > "$out"
'';
};
in {
name = "bfqsched-${version}";
inherit version patch;
}
|