perf-linux: fix build on linux 5.4
This commit is contained in:
parent
b016e85f39
commit
ff7f75dfcc
@ -69,7 +69,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs scripts tools/perf/pmu-events/jevents.py
|
patchShebangs scripts tools/perf/pmu-events/jevents.py
|
||||||
|
'' + lib.optionalString (lib.versionAtLeast kernel.version "5.8") ''
|
||||||
substituteInPlace tools/perf/scripts/python/flamegraph.py \
|
substituteInPlace tools/perf/scripts/python/flamegraph.py \
|
||||||
--replace "/usr/share/d3-flame-graph/d3-flamegraph-base.html" \
|
--replace "/usr/share/d3-flame-graph/d3-flamegraph-base.html" \
|
||||||
"${d3-flame-graph-templates}/share/d3-flame-graph/d3-flamegraph-base.html"
|
"${d3-flame-graph-templates}/share/d3-flame-graph/d3-flamegraph-base.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user