summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb.inc
blob: ab84737468e2ca4cfd9c09d2c2fe6b3f2251538e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
}