diff --git a/kernel/Dockerfile b/kernel/Dockerfile index 563df4a06..aa19b7e76 100644 --- a/kernel/Dockerfile +++ b/kernel/Dockerfile @@ -93,6 +93,13 @@ RUN DVER=$(basename $(find /tmp/kernel-modules/lib/modules/ -mindepth 1 -maxdept RUN printf "KERNEL_SOURCE=${KERNEL_SOURCE}\n" > /out/kernel-source-info +# perf (Don't compile for 4.4.x, it's broken and tedious to fix) +RUN if [ "${KERNEL_SERIES}" != "4.4.x" ]; then \ + mkdir -p /build/perf && \ + make -C tools/perf LDFLAGS=-static O=/build/perf && \ + strip /build/perf/perf && \ + cp /build/perf/perf /out; \ + fi FROM scratch ENTRYPOINT []