blob: 87c2a5866d3b77cd3c0e452910149f4d5af3af59 (
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
|
require recipes-connectivity/ofono/ofono.inc
S = "${WORKDIR}/git"
SRCREV = "dae225a0d64235780e09bb699afa101aeab6cc94"
PV = "1.16+git${SRCPV}"
SRC_URI = "\
git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \
file://ofono \
"
# We want to use bluez5
DEPENDS := "${@oe_filter_out('bluez4', '${DEPENDS}', d)}"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez5', '', d)}"
# Test scripts use python3, the dbus module is still missing so the scripts
# do not work as expected.
RDEPENDS_${PN} = "\
python3 \
python3-codecs \
python3-math \
python3-io \
python3-misc \
"
do_install_append() {
# Because python3-dbus module is currently not there, just use
# python 2.x in the ofono test scripts
for PYTHSCRIPT in `grep -rIl ${bindir}/python3 ${D}${libdir}/${PN}`; do
sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
done
}
|