aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gdb/gdb-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gdb/gdb-common.inc')
-rw-r--r--recipes/gdb/gdb-common.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/gdb/gdb-common.inc b/recipes/gdb/gdb-common.inc
index d6e0725189..1e0d7c2e9b 100644
--- a/recipes/gdb/gdb-common.inc
+++ b/recipes/gdb/gdb-common.inc
@@ -20,3 +20,18 @@ export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
S = "${WORKDIR}/gdb-${PV}"
B = "${WORKDIR}/build-${TARGET_SYS}"
+do_install_append() {
+ # these mo files from gdb-cross-sdk clash with files from binutils-cross-sdk
+ # when building sdk archives. Drop them for now as a way to restore toolchains.
+ rm ${D}/${datadir}/locale/*/LC_MESSAGES/{bfd,opcodes}.mo
+
+ # we don't care about these infos, installed from binutils
+ rm -f ${D}/${infodir}/{configure,standards,bfd}.info
+ rm -f ${D}/${infodir}/dir
+
+ # We use libiberty from binutils
+ rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
+ rm -f ${D}${libdir}/libiberty.a
+
+}
+