perf-linux: tweak make flags to supress build warnings

This commit is contained in:
Aaron Jheng 2022-11-16 12:57:06 +00:00
parent 8b5dd47fe0
commit 039d874f0b
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -78,7 +78,10 @@ stdenv.mkDerivation {
patchShebangs pmu-events/jevents.py
'';
makeFlags = [ "prefix=$(out)" "WERROR=0" ] ++ kernel.makeFlags;
makeFlags = [ "prefix=$(out)" "WERROR=0" "ASCIIDOC8=1" ] ++ kernel.makeFlags
++ lib.optional (!withGtk) "NO_GTK2=1"
++ lib.optional (!withZstd) "NO_LIBZSTD=1"
++ lib.optional (!withLibcap) "NO_LIBCAP=1";
hardeningDisable = [ "format" ];
@ -127,7 +130,7 @@ stdenv.mkDerivation {
doCheck = false; # requires "sparse"
installFlags = [ "install" "install-man" "ASCIIDOC8=1" "prefix=$(out)" ];
installTargets = [ "install" "install-man" ];
# TODO: Add completions based on perf-completion.sh
postInstall = ''