diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb.inc | 51 |
1 files changed, 51 insertions, 0 deletions
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 @@ | |||
1 | require gdb-common.inc | ||
2 | |||
3 | inherit gettext ptest | ||
4 | |||
5 | SRC_URI += "file://kill_arm_map_symbols.patch \ | ||
6 | file://gdbserver-cflags-last.diff;striplevel=0 \ | ||
7 | file://renesas-sh-native-support.patch \ | ||
8 | file://run-ptest \ | ||
9 | file://runtest-flags.patch \ | ||
10 | file://0001-add-delay-before-run-exp-file.patch \ | ||
11 | file://0002-function-name-is-used-by-mistake.patch \ | ||
12 | file://gdb-ptest-attach.patch \ | ||
13 | " | ||
14 | #LDFLAGS_append = " -s" | ||
15 | #export CFLAGS_append=" -L${STAGING_LIBDIR}" | ||
16 | |||
17 | # cross-canadian must not see this | ||
18 | PACKAGES =+ "gdbserver" | ||
19 | FILES_gdbserver = "${bindir}/gdbserver" | ||
20 | |||
21 | |||
22 | |||
23 | DEPENDS_${PN}-ptest += "expect dejagnu tcl" | ||
24 | RDEPENDS_${PN}-ptest += "eglibc-charmap-ibm1047 \ | ||
25 | eglibc-gconv-ibm1047 \ | ||
26 | eglibc-charmap-ebcdic-us \ | ||
27 | eglibc-gconv-ebcdic-us \ | ||
28 | eglibc-gconv-utf-32 \ | ||
29 | eglibc-gconv-utf-16 \ | ||
30 | prelink \ | ||
31 | expect \ | ||
32 | dejagnu \ | ||
33 | make \ | ||
34 | " | ||
35 | do_configure_ptest () { | ||
36 | if [ "${PN}" = "${BPN}" ]; then | ||
37 | cd ${S}/gdb/testsuite/ | ||
38 | ./configure --host=${HOST_SYS} --build=${BUILD_SYS} | ||
39 | make site.exp | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | do_install_ptest () { | ||
44 | if [ "${PN}" = "${BPN}" ]; then | ||
45 | cp -r ${S}/gdb/testsuite/ ${D}${PTEST_PATH} | ||
46 | cp -r ${S}/gdb/features/ ${D}${PTEST_PATH} | ||
47 | cp ${S}/config.sub ${D}${PTEST_PATH}/testsuite/ | ||
48 | cp ${S}/config.guess ${D}${PTEST_PATH}/testsuite/ | ||
49 | cp ${S}/install-sh ${D}${PTEST_PATH}/testsuite/ | ||
50 | fi | ||
51 | } | ||