summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5/bluez5.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index f38eaa5035..523252373a 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -19,11 +19,13 @@ PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental,"
19SRC_URI = "\ 19SRC_URI = "\
20 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ 20 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
21 file://init \ 21 file://init \
22 file://run-ptest \
22 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ 23 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \
24 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
23" 25"
24S = "${WORKDIR}/bluez-${PV}" 26S = "${WORKDIR}/bluez-${PV}"
25 27
26inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check 28inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check ptest
27 29
28EXTRA_OECONF = "\ 30EXTRA_OECONF = "\
29 --enable-tools \ 31 --enable-tools \
@@ -101,3 +103,12 @@ INITSCRIPT_PACKAGES = "${PN}"
101INITSCRIPT_NAME_${PN} = "bluetooth" 103INITSCRIPT_NAME_${PN} = "bluetooth"
102 104
103EXCLUDE_FROM_WORLD = "1" 105EXCLUDE_FROM_WORLD = "1"
106
107do_compile_ptest() {
108 oe_runmake buildtests
109}
110
111do_install_ptest() {
112 cp -r ${B}/unit/ ${D}${PTEST_PATH}
113 rm ${D}${PTEST_PATH}/unit/*.c ${D}${PTEST_PATH}/unit/*.o
114}