summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch')
-rw-r--r--meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch b/meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch
new file mode 100644
index 000000000..c24db1042
--- /dev/null
+++ b/meta-oe/recipes-kernel/crash/crash/remove-unrecognized-gcc-option-m32-for-mips.patch
@@ -0,0 +1,33 @@
1Upstream-Status: Pending
2
3It fails to build crash for mips with error:
4
5| mips-wrs-linux-gcc: error: unrecognized command line option '-m32'
6| Makefile:291: recipe for target 'make_build_data' failed
7
8So remove the unrecognized option '-m32' for mips.
9
10Signed-off-by: Kai Kang <kai.kang@windriver.com>
11---
12diff --git a/configure.c b/configure.c
13index cf1973b..71e97b3 100644
14--- a/configure.c
15+++ b/configure.c
16@@ -148,7 +148,7 @@ void add_extra_lib(char *);
17 #define TARGET_CFLAGS_PPC64_ON_X86_64 "TARGET_CFLAGS="
18 #define TARGET_CFLAGS_MIPS "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64"
19 #define TARGET_CFLAGS_MIPS_ON_X86 "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64"
20-#define TARGET_CFLAGS_MIPS_ON_X86_64 "TARGET_CFLAGS=-m32 -D_FILE_OFFSET_BITS=64"
21+#define TARGET_CFLAGS_MIPS_ON_X86_64 "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64"
22
23 #define GDB_TARGET_DEFAULT "GDB_CONF_FLAGS="
24 #define GDB_TARGET_ARM_ON_X86 "GDB_CONF_FLAGS=--target=arm-elf-linux"
25@@ -158,7 +158,7 @@ void add_extra_lib(char *);
26 #define GDB_TARGET_ARM64_ON_X86_64 "GDB_CONF_FLAGS=--target=aarch64-elf-linux" /* TBD */
27 #define GDB_TARGET_PPC64_ON_X86_64 "GDB_CONF_FLAGS=--target=powerpc64le-unknown-linux-gnu"
28 #define GDB_TARGET_MIPS_ON_X86 "GDB_CONF_FLAGS=--target=mipsel-elf-linux"
29-#define GDB_TARGET_MIPS_ON_X86_64 "GDB_CONF_FLAGS=--target=mipsel-elf-linux CFLAGS=-m32"
30+#define GDB_TARGET_MIPS_ON_X86_64 "GDB_CONF_FLAGS=--target=mipsel-elf-linux"
31
32 /*
33 * The original plan was to allow the use of a particular version