yavta: import from meta-oe
[openembedded.git] / recipes / gdb / gdb-common.inc
blob163f1a37e87e4c8dfaf1743f4265f64f8651b540
1 DESCRIPTION = "gdb - GNU debugger"
2 HOMEPAGE = "http://www.gnu.org/software/gdb/"
3 LICENSE="GPL"
4 SECTION = "devel"
5 PRIORITY = "optional"
7 INC_PR = "r9"
9 inherit autotools
11 SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz"
13 FILESPATHPKG =. "gdb-${PV}:" 
15 export CC_FOR_BUILD = "${BUILD_CC}"
16 export CXX_FOR_BUILD = "${BUILD_CXX}"
17 export CPP_FOR_BUILD = "${BUILD_CPP}"
18 export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
19 export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
20 export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
22 S = "${WORKDIR}/gdb-${PV}"
23 B = "${WORKDIR}/build-${TARGET_SYS}"
25 do_install_append() {
26         # these mo and doc files from gdb-cross-sdk clash with files from
27         # binutils-cross-sdk when building sdk archives. Drop them for now as a
28         # way to restore toolchains.
29         rm -f ${D}${datadir}/locale/*/LC_MESSAGES/{bfd,opcodes}.mo
30         rm -rf ${D}${docdir}/bfd.html
32         # we don't care about these infos, installed from binutils
33         rm -f ${D}${infodir}/{configure,standards,bfd}.info
34         rm -f ${D}${docdir}/{configure,standards,bfd,libiberty}.html
35         rm -f ${D}${infodir}/dir
37         # We use libiberty from binutils
38         rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
39         rm -f ${D}${prefix}/lib{,64}/libiberty.a
41         # Use libbfd from binutils.
42         rm -f ${D}${prefix}/lib/libbfd.{,l}a
44         # Use libopcodes from binutils.
45         rm -f ${D}${prefix}/lib/libopcodes.{,l}a