summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-09-08 16:23:31 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-16 23:02:43 +0100
commita1a46e85a8ec1ce60f6bdde6090b1f3d6f4913c5 (patch)
tree318368106100358f1c97cf87c038e78100870bee
parentc4baf598975eae6379ea014afe208bd7307913f5 (diff)
downloadpoky-a1a46e85a8ec1ce60f6bdde6090b1f3d6f4913c5.tar.gz
elfutils: Fix build on ppc/musl
musl relies on the pt_regs definitions from kernel ptrace headers (From OE-Core rev: 7df9aa52446a031c10e84f321733a0e56f563e85) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.177.bb1
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch32
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.177.bb b/meta/recipes-devtools/elfutils/elfutils_0.177.bb
index fcebb4b048..78c3791936 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.177.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.177.bb
@@ -31,6 +31,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
31 file://debian/mips_cfi.patch \ 31 file://debian/mips_cfi.patch \
32 file://debian/0001-fix-compile-failure-with-debian-patches.patch \ 32 file://debian/0001-fix-compile-failure-with-debian-patches.patch \
33 file://0001-skip-the-test-when-gcc-not-deployed.patch \ 33 file://0001-skip-the-test-when-gcc-not-deployed.patch \
34 file://0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch \
34 file://run-ptest \ 35 file://run-ptest \
35 file://ptest.patch \ 36 file://ptest.patch \
36 " 37 "
diff --git a/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch b/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch
new file mode 100644
index 0000000000..3303333c45
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch
@@ -0,0 +1,32 @@
1From 2e2232d0935bf8ef6e66ebffba3be68a73b5b3e5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 8 Sep 2019 15:57:59 -0700
4Subject: [PATCH] ppc_initreg.c: Incliude asm/ptrace.h for pt_regs definition
5
6Fixes
7| ../../elfutils-0.176/backends/ppc_initreg.c:79:22: error: field 'r' has incomplete type
8| struct pt_regs r;
9| ^
10
11Upstream-Status: Pending
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 backends/ppc_initreg.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c
19index 0e0d359..e5cca7e 100644
20--- a/backends/ppc_initreg.c
21+++ b/backends/ppc_initreg.c
22@@ -33,6 +33,7 @@
23 #include <stdlib.h>
24 #if defined(__powerpc__) && defined(__linux__)
25 # include <sys/ptrace.h>
26+# include <asm/ptrace.h>
27 # include <sys/user.h>
28 #endif
29
30--
312.23.0
32