From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- meta/recipes-devtools/gdb/gdb.inc | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb.inc (limited to 'meta/recipes-devtools/gdb/gdb.inc') diff --git a/meta/recipes-devtools/gdb/gdb.inc b/meta/recipes-devtools/gdb/gdb.inc new file mode 100644 index 0000000000..ab84737468 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb.inc @@ -0,0 +1,51 @@ +require gdb-common.inc + +inherit gettext ptest + +SRC_URI += "file://kill_arm_map_symbols.patch \ + file://gdbserver-cflags-last.diff;striplevel=0 \ + file://renesas-sh-native-support.patch \ + file://run-ptest \ + file://runtest-flags.patch \ + file://0001-add-delay-before-run-exp-file.patch \ + file://0002-function-name-is-used-by-mistake.patch \ + file://gdb-ptest-attach.patch \ + " +#LDFLAGS_append = " -s" +#export CFLAGS_append=" -L${STAGING_LIBDIR}" + +# cross-canadian must not see this +PACKAGES =+ "gdbserver" +FILES_gdbserver = "${bindir}/gdbserver" + + + +DEPENDS_${PN}-ptest += "expect dejagnu tcl" +RDEPENDS_${PN}-ptest += "eglibc-charmap-ibm1047 \ + eglibc-gconv-ibm1047 \ + eglibc-charmap-ebcdic-us \ + eglibc-gconv-ebcdic-us \ + eglibc-gconv-utf-32 \ + eglibc-gconv-utf-16 \ + prelink \ + expect \ + dejagnu \ + make \ + " +do_configure_ptest () { + if [ "${PN}" = "${BPN}" ]; then + cd ${S}/gdb/testsuite/ + ./configure --host=${HOST_SYS} --build=${BUILD_SYS} + make site.exp + fi +} + +do_install_ptest () { + if [ "${PN}" = "${BPN}" ]; then + cp -r ${S}/gdb/testsuite/ ${D}${PTEST_PATH} + cp -r ${S}/gdb/features/ ${D}${PTEST_PATH} + cp ${S}/config.sub ${D}${PTEST_PATH}/testsuite/ + cp ${S}/config.guess ${D}${PTEST_PATH}/testsuite/ + cp ${S}/install-sh ${D}${PTEST_PATH}/testsuite/ + fi +} -- cgit v1.2.3-54-g00ecf