diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-04-01 17:57:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-03 15:51:36 +0100 |
commit | 5c60c3621487248920d7229b9a19848752af4480 (patch) | |
tree | e8fbefe9cba9ae3e9b797533af0fb4b2d4d8b5a5 /meta/recipes-connectivity/bluez5/bluez5.inc | |
parent | fc8b24d8e0cded78ad168b8a4ebc553a11b62f64 (diff) | |
download | poky-5c60c3621487248920d7229b9a19848752af4480.tar.gz |
bluez5: add ptest support
[YOCTO #5134]
(From OE-Core rev: 70d8cb61b03aa9214fe0e1990ab9500888d9f565)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 13 |
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," | |||
19 | SRC_URI = "\ | 19 | SRC_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 | " |
24 | S = "${WORKDIR}/bluez-${PV}" | 26 | S = "${WORKDIR}/bluez-${PV}" |
25 | 27 | ||
26 | inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check | 28 | inherit autotools-brokensep pkgconfig systemd update-rc.d distro_features_check ptest |
27 | 29 | ||
28 | EXTRA_OECONF = "\ | 30 | EXTRA_OECONF = "\ |
29 | --enable-tools \ | 31 | --enable-tools \ |
@@ -101,3 +103,12 @@ INITSCRIPT_PACKAGES = "${PN}" | |||
101 | INITSCRIPT_NAME_${PN} = "bluetooth" | 103 | INITSCRIPT_NAME_${PN} = "bluetooth" |
102 | 104 | ||
103 | EXCLUDE_FROM_WORLD = "1" | 105 | EXCLUDE_FROM_WORLD = "1" |
106 | |||
107 | do_compile_ptest() { | ||
108 | oe_runmake buildtests | ||
109 | } | ||
110 | |||
111 | do_install_ptest() { | ||
112 | cp -r ${B}/unit/ ${D}${PTEST_PATH} | ||
113 | rm ${D}${PTEST_PATH}/unit/*.c ${D}${PTEST_PATH}/unit/*.o | ||
114 | } | ||