aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-connectivity/bluez5/bluez5_%.bbappend
blob: d4ef0b7f7891cc5ca468f24b72e2d0d9da2e1b37 (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
#
# for test
#
PACKAGECONFIG += " readline testing tools"

do_install_append() {
   install -d ${D}/opt/tests/${PN}
   mv ${D}/${libdir}/bluez/test/* ${D}/opt/tests/${PN}
   rmdir ${D}/${libdir}/bluez/test
   rmdir ${D}/${libdir}/bluez

   # move desired tools that upstream leaves in build area
   for f in ${NOINST_TOOLS} ; do
      g=`basename $f`
      mv ${D}/${bindir}/$g ${D}/opt/tests/${PN}
   done
}

def get_noinst_tools_paths2 (d, bb, tools):
    s = list()
    bindir = '/opt/tests/' + d.getVar("PN", True)
    for bdp in tools.split():
        f = os.path.basename(bdp)
        s.append("%s/%s" % (bindir, f))
    return "\n".join(s)

FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths2(d, bb, d.getVar('NOINST_TOOLS', True))}"

PACKAGES += "${PN}-test"
DEPENDS_${PN}-test = "${PN}"

FILES_${PN}-dbg += " \
   /opt/tests/${PN}/.debug/* \
   /opt/tests/${PN}/lib/.debug/* \
   "
FILES_${PN}-test = " \
   /opt/tests/${PN}/* \
   "