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 \ file://include_asm_ptrace.patch \ file://change-scripts-support-from-ksh-to-bash.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 += "glibc-charmap-ibm1047 \ glibc-gconv-ibm1047 \ glibc-charmap-ebcdic-us \ glibc-gconv-ebcdic-us \ glibc-gconv-utf-32 \ glibc-gconv-utf-16 \ prelink \ expect \ dejagnu \ make \ bash \ " 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 }