From a111015bf5476a8138ac83d7dd4f8704427a6adb Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 3 Jan 2021 03:31:44 +0100 Subject: [PATCH] linux-tools: a hack to fix build of bpftool on ppc* --- srcpkgs/linux-tools/patches/ppc-bpf.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/linux-tools/patches/ppc-bpf.patch diff --git a/srcpkgs/linux-tools/patches/ppc-bpf.patch b/srcpkgs/linux-tools/patches/ppc-bpf.patch new file mode 100644 index 00000000000..251047b6c2c --- /dev/null +++ b/srcpkgs/linux-tools/patches/ppc-bpf.patch @@ -0,0 +1,15 @@ +https://www.mail-archive.com/netdev@vger.kernel.org/msg364272.html + +--- tools/include/uapi/linux/types.h ++++ tools/include/uapi/linux/types.h +@@ -20,4 +20,10 @@ typedef __u32 __bitwise __wsum; + #define __aligned_be64 __be64 __attribute__((aligned(8))) + #define __aligned_le64 __le64 __attribute__((aligned(8))) + ++#ifdef __powerpc__ ++typedef struct { ++ __u32 u[4]; ++} __attribute__((aligned(16))) __vector128; ++#endif ++ + #endif /* _UAPI_LINUX_TYPES_H */