diff options
Diffstat (limited to 'recipes/gdb/gdb-common.inc')
-rw-r--r-- | recipes/gdb/gdb-common.inc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/recipes/gdb/gdb-common.inc b/recipes/gdb/gdb-common.inc index 0c236925dc..c3eef690d7 100644 --- a/recipes/gdb/gdb-common.inc +++ b/recipes/gdb/gdb-common.inc @@ -8,7 +8,7 @@ inherit autotools SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz" -FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}" +FILESPATHPKG =. "gdb-${PV}:" export CC_FOR_BUILD = "${BUILD_CC}" export CXX_FOR_BUILD = "${BUILD_CXX}" @@ -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 -f ${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 + +} + |