blob: 6f12bd2c8334f0dcbdd1d53c315d5debfb5f21f8 (
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
|
{ stdenv, fetchurl }:
let
bfqVersion = "v7r8";
kernelVersion = "4.1";
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 = "0xb9x502j5s4j31fzplr88i4qik2h6prh2a5gaidk9hy0p4a637c";
})
(fetchPatch {
name = "0002-block-introduce-the-BFQ-"
+ "${bfqVersion}-I-O-sched-for-${kernelVersion}";
sha256 = "0yz8pnifrbrcir6b1r7iz7spz2rwqgy8y4dx904iia62723c9hn5";
})
(fetchPatch {
name = "0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-"
+ "${bfqVersion}-for-${kernelVersion}.0";
sha256 = "1n9070kbr9rly6aabjzkfb100ibk2b97mhhssk4awjfzvdmgfc2g";
})
];
patch = stdenv.mkDerivation {
name = "bfqsched-${version}.patch";
inherit allPatches;
buildCommand = ''
cat $allPatches > "$out"
'';
};
in {
name = "bfqsched-${version}";
inherit version patch;
}
|