summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2013-07-16 18:26:01 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-18 21:24:28 +0100
commiteff0b05bb7e83928b11cc214f8189e3c531af83a (patch)
tree247dbb847cd603887bd70acac472d46b7f05f8f7 /meta/recipes-connectivity/bluez5
parenta527fe24d812bb024d602d8b016c76704887b177 (diff)
downloadpoky-eff0b05bb7e83928b11cc214f8189e3c531af83a.tar.gz
bluez5: new package for v5.7
- bluez5 does not replace bluez4 - bluez5 is integrated with systemd - RCONFLICTS bluez4 - add readline dependency (From OE-Core rev: 5d55498be84a6a8725794f75f4d12336048cdc34) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/bluez5')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5-5.7/bluetooth.conf16
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc68
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5_5.7.bb5
3 files changed, 89 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5-5.7/bluetooth.conf b/meta/recipes-connectivity/bluez5/bluez5-5.7/bluetooth.conf
new file mode 100644
index 0000000000..ca5e9e4f2f
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5-5.7/bluetooth.conf
@@ -0,0 +1,16 @@
1<!-- This configuration file specifies the required security policies
2 for Bluetooth core daemon to work. -->
3
4<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
5 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
6<busconfig>
7
8 <!-- ../system.conf have denied everything, so we just punch some holes -->
9
10 <policy context="default">
11 <allow own="org.bluez"/>
12 <allow send_destination="org.bluez"/>
13 <allow send_interface="org.bluez.Agent"/>
14 </policy>
15
16</busconfig>
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
new file mode 100644
index 0000000000..fc78900962
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -0,0 +1,68 @@
1SUMMARY = "Linux Bluetooth Stack Userland V5"
2DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries."
3HOMEPAGE = "http://www.bluez.org"
4SECTION = "libs"
5LICENSE = "GPLv2+ & LGPLv2.1+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
7 file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
8 file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e"
9DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck libical readline"
10
11RCONFLICTS_${PN} = "bluez4"
12
13PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}"
14PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
15
16SRC_URI = "\
17 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.gz \
18 file://bluetooth.conf \
19"
20S = "${WORKDIR}/bluez-${PV}"
21
22inherit autotools pkgconfig systemd
23
24EXTRA_OECONF = "\
25 --disable-gstreamer \
26 --enable-usb \
27 --enable-tools \
28 --enable-bccmd \
29 --enable-hid2hci \
30 --enable-dfutool \
31 --disable-hidd \
32 --disable-pand \
33 --disable-dund \
34 --disable-cups \
35 --enable-test \
36 --enable-datafiles \
37 ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--disable-systemd', d)} \
38"
39
40do_install_append() {
41 install -d ${D}${sysconfdir}/bluetooth/
42 install -m 0644 ${S}/profiles/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
43 install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
44 install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
45 # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
46 install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
47}
48
49ALLOW_EMPTY_libasound-module-bluez = "1"
50PACKAGES =+ "libasound-module-bluez ${PN}-test"
51
52FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
53FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
54FILES_${PN}-dev += "\
55 ${libdir}/bluetooth/plugins/*.la \
56 ${libdir}/alsa-lib/*.la \
57"
58
59FILES_${PN}-test = "${libdir}/bluez/test/*"
60
61FILES_${PN}-dbg += "\
62 ${libdir}/${BPN}/bluetooth/.debug \
63 ${libdir}/bluetooth/plugins/.debug \
64 ${libdir}/*/.debug \
65 */udev/.debug \
66 "
67
68SYSTEMD_SERVICE_${PN} = "bluetooth.service"
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.7.bb b/meta/recipes-connectivity/bluez5/bluez5_5.7.bb
new file mode 100644
index 0000000000..6e2850db9b
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5_5.7.bb
@@ -0,0 +1,5 @@
1require bluez5.inc
2
3SRC_URI[md5sum] = "ce0ef43938e8bfc230f3f06d6ad02d7e"
4SRC_URI[sha256sum] = "902299204b7139c913765603c7054a604570aea9e9fddb30454bd1b5e5997860"
5