bpftools: fix build on ppc64le

This commit is contained in:
Jiajie Chen 2022-10-30 10:46:28 +08:00
parent 56c47ebd7b
commit eeda27d0f2
2 changed files with 18 additions and 1 deletions

View file

@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-xDalSMcxLOb8WjRyy+rYle749ShB++fHH9jki9/isLo=";
};
patches = [ ./strip-binary-name.patch ];
patches = [
./strip-binary-name.patch
# fix unknown type name '__vector128' on ppc64le
./include-asm-types-for-ppc64le.patch
];
nativeBuildInputs = [ python3 bison flex ];
buildInputs = (if (lib.versionAtLeast version "5.20")

View file

@ -0,0 +1,13 @@
diff --git a/tools/include/uapi/linux/types.h b/tools/include/uapi/linux/types.h
index 91fa51a9c31d..bfbd9b47277f 100644
--- a/tools/include/uapi/linux/types.h
+++ b/tools/include/uapi/linux/types.h
@@ -2,7 +2,7 @@
#ifndef _UAPI_LINUX_TYPES_H
#define _UAPI_LINUX_TYPES_H
-#include <asm-generic/int-ll64.h>
+#include <asm/types.h>
/* copied from linux:include/uapi/linux/types.h */
#define __bitwise