summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/crash
diff options
context:
space:
mode:
authorGoran Cengic <cengic@gmail.com>2020-03-19 19:43:55 +0100
committerKhem Raj <raj.khem@gmail.com>2020-03-20 07:44:29 -0700
commitfa91738a942756582d7fd2bfd5a9a72abde65f6e (patch)
tree28c53362eacc00aeb28c3c38205f206fe113a5e8 /meta-oe/recipes-kernel/crash
parentf0f5e2027241f9d245f5e9c8d87726ecd1e49836 (diff)
downloadmeta-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.bb12
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"
10LICENSE = "GPLv3" 10LICENSE = "GPLv3"
11LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504" 11LIC_FILES_CHKSUM = "file://COPYING3;md5=d32239bcb673463ab874e80d47fae504"
12 12
13DEPENDS = "zlib readline coreutils-native" 13DEPENDS = "zlib readline coreutils-native ncurses-native"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16SRC_URI = "git://github.com/crash-utility/${BPN}.git \ 16SRC_URI = "git://github.com/crash-utility/${BPN}.git \
@@ -49,9 +49,7 @@ EXTRA_OEMAKE = 'RPMPKG="${PV}" \
49 ' 49 '
50 50
51EXTRA_OEMAKE_class-cross = 'RPMPKG="${PV}" \ 51EXTRA_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}" \
59EXTRA_OEMAKE_append_class-native = " LDFLAGS='${BUILD_LDFLAGS}'" 57EXTRA_OEMAKE_append_class-native = " LDFLAGS='${BUILD_LDFLAGS}'"
60EXTRA_OEMAKE_append_class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" 58EXTRA_OEMAKE_append_class-cross = " LDFLAGS='${BUILD_LDFLAGS}'"
61 59
62REMOVE_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
64REMOVE_M32_class-cross = ""
65
66do_configure() { 60do_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/&gt;/>/g' ${S}/Makefile 77 sed -i 's/&gt;/>/g' ${S}/Makefile
84} 78}
85 79