diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb.inc | 54 |
1 files changed, 54 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..205f65e06e --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb.inc | |||
@@ -0,0 +1,54 @@ | |||
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 | file://include_asm_ptrace.patch \ | ||
14 | file://change-scripts-support-from-ksh-to-bash.patch \ | ||
15 | " | ||
16 | #LDFLAGS_append = " -s" | ||
17 | #export CFLAGS_append=" -L${STAGING_LIBDIR}" | ||
18 | |||
19 | # cross-canadian must not see this | ||
20 | PACKAGES =+ "gdbserver" | ||
21 | FILES_gdbserver = "${bindir}/gdbserver" | ||
22 | |||
23 | |||
24 | |||
25 | DEPENDS_${PN}-ptest += "expect dejagnu tcl" | ||
26 | RDEPENDS_${PN}-ptest += "glibc-charmap-ibm1047 \ | ||
27 | glibc-gconv-ibm1047 \ | ||
28 | glibc-charmap-ebcdic-us \ | ||
29 | glibc-gconv-ebcdic-us \ | ||
30 | glibc-gconv-utf-32 \ | ||
31 | glibc-gconv-utf-16 \ | ||
32 | prelink \ | ||
33 | expect \ | ||
34 | dejagnu \ | ||
35 | make \ | ||
36 | bash \ | ||
37 | " | ||
38 | do_configure_ptest () { | ||
39 | if [ "${PN}" = "${BPN}" ]; then | ||
40 | cd ${S}/gdb/testsuite/ | ||
41 | ./configure --host=${HOST_SYS} --build=${BUILD_SYS} | ||
42 | make site.exp | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | do_install_ptest () { | ||
47 | if [ "${PN}" = "${BPN}" ]; then | ||
48 | cp -r ${S}/gdb/testsuite/ ${D}${PTEST_PATH} | ||
49 | cp -r ${S}/gdb/features/ ${D}${PTEST_PATH} | ||
50 | cp ${S}/config.sub ${D}${PTEST_PATH}/testsuite/ | ||
51 | cp ${S}/config.guess ${D}${PTEST_PATH}/testsuite/ | ||
52 | cp ${S}/install-sh ${D}${PTEST_PATH}/testsuite/ | ||
53 | fi | ||
54 | } | ||