diff options
author | Goran Cengic <cengic@gmail.com> | 2020-03-19 19:43:55 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | fa91738a942756582d7fd2bfd5a9a72abde65f6e (patch) | |
tree | 28c53362eacc00aeb28c3c38205f206fe113a5e8 /meta-oe/recipes-kernel/crash | |
parent | f0f5e2027241f9d245f5e9c8d87726ecd1e49836 (diff) | |
download | meta-openembedded-fa91738a942756582d7fd2bfd5a9a72abde65f6e.tar.gz |
crash: fix crash-cross build on x86_64
Remove -m32 from CFLAGS even for -cross recipe. Also remove
${GDB_CONF_FLAGS} from GDB_TARGET variable (that is passed to the gdb
configuration) since the use of GDB_CONF_FLAGS is removed by
0001-cross_add_configure_option.patch.
Signed-off-by: Goran Cengic <cengic@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/crash')
-rw-r--r-- | meta-oe/recipes-kernel/crash/crash_7.2.8.bb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/meta-oe/recipes-kernel/crash/crash_7.2.8.bb b/meta-oe/recipes-kernel/crash/crash_7.2.8.bb index 61cc71fff..5fc25f400 100644 --- a/meta-oe/recipes-kernel/crash/crash_7.2.8.bb +++ b/meta-oe/recipes-kernel/crash/crash_7.2.8.bb | |||
@@ -10,7 +10,7 @@ SECTION = "devel" | |||
10 | LICENSE = "GPLv3" | 10 | LICENSE = "GPLv3" |
11 | LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" | 11 | LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" |
12 | 12 | ||
13 | DEPENDS = "zlib readline coreutils-native" | 13 | DEPENDS = "zlib readline coreutils-native ncurses-native" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | SRC_URI = "git://github.com/crash-utility/${BPN}.git \ | 16 | SRC_URI = "git://github.com/crash-utility/${BPN}.git \ |
@@ -49,9 +49,7 @@ EXTRA_OEMAKE = 'RPMPKG="${PV}" \ | |||
49 | ' | 49 | ' |
50 | 50 | ||
51 | EXTRA_OEMAKE_class-cross = 'RPMPKG="${PV}" \ | 51 | EXTRA_OEMAKE_class-cross = 'RPMPKG="${PV}" \ |
52 | GDB_TARGET="${BUILD_SYS} \ | 52 | GDB_TARGET="${BUILD_SYS} --target=${TARGET_SYS}" \ |
53 | \${GDB_CONF_FLAGS} \ | ||
54 | --target=${TARGET_SYS}" \ | ||
55 | GDB_HOST="${BUILD_SYS}" \ | 53 | GDB_HOST="${BUILD_SYS}" \ |
56 | GDB_MAKE_JOBS="${PARALLEL_MAKE}" \ | 54 | GDB_MAKE_JOBS="${PARALLEL_MAKE}" \ |
57 | ' | 55 | ' |
@@ -59,10 +57,6 @@ EXTRA_OEMAKE_class-cross = 'RPMPKG="${PV}" \ | |||
59 | EXTRA_OEMAKE_append_class-native = " LDFLAGS='${BUILD_LDFLAGS}'" | 57 | EXTRA_OEMAKE_append_class-native = " LDFLAGS='${BUILD_LDFLAGS}'" |
60 | EXTRA_OEMAKE_append_class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" | 58 | EXTRA_OEMAKE_append_class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" |
61 | 59 | ||
62 | REMOVE_M32 = "sed -i -e 's/#define TARGET_CFLAGS_ARM_ON_X86_64.*/#define TARGET_CFLAGS_ARM_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c" | ||
63 | |||
64 | REMOVE_M32_class-cross = "" | ||
65 | |||
66 | do_configure() { | 60 | do_configure() { |
67 | : | 61 | : |
68 | } | 62 | } |
@@ -79,7 +73,7 @@ do_compile_prepend() { | |||
79 | esac | 73 | esac |
80 | 74 | ||
81 | sed -i s/FORCE_DEFINE_ARCH/"${ARCH}"/g ${S}/configure.c | 75 | sed -i s/FORCE_DEFINE_ARCH/"${ARCH}"/g ${S}/configure.c |
82 | ${REMOVE_M32} | 76 | sed -i -e 's/#define TARGET_CFLAGS_ARM_ON_X86_64.*/#define TARGET_CFLAGS_ARM_ON_X86_64\t\"TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64\"/g' ${S}/configure.c |
83 | sed -i 's/>/>/g' ${S}/Makefile | 77 | sed -i 's/>/>/g' ${S}/Makefile |
84 | } | 78 | } |
85 | 79 | ||