diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2013-07-16 18:26:01 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-18 21:24:28 +0100 |
commit | eff0b05bb7e83928b11cc214f8189e3c531af83a (patch) | |
tree | 247dbb847cd603887bd70acac472d46b7f05f8f7 | |
parent | a527fe24d812bb024d602d8b016c76704887b177 (diff) | |
download | poky-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>
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5-5.7/bluetooth.conf | 16 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 68 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5_5.7.bb | 5 |
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 @@ | |||
1 | SUMMARY = "Linux Bluetooth Stack Userland V5" | ||
2 | DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries." | ||
3 | HOMEPAGE = "http://www.bluez.org" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | ||
7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ | ||
8 | file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e" | ||
9 | DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck libical readline" | ||
10 | |||
11 | RCONFLICTS_${PN} = "bluez4" | ||
12 | |||
13 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" | ||
14 | PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib" | ||
15 | |||
16 | SRC_URI = "\ | ||
17 | ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.gz \ | ||
18 | file://bluetooth.conf \ | ||
19 | " | ||
20 | S = "${WORKDIR}/bluez-${PV}" | ||
21 | |||
22 | inherit autotools pkgconfig systemd | ||
23 | |||
24 | EXTRA_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 | |||
40 | do_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 | |||
49 | ALLOW_EMPTY_libasound-module-bluez = "1" | ||
50 | PACKAGES =+ "libasound-module-bluez ${PN}-test" | ||
51 | |||
52 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | ||
53 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" | ||
54 | FILES_${PN}-dev += "\ | ||
55 | ${libdir}/bluetooth/plugins/*.la \ | ||
56 | ${libdir}/alsa-lib/*.la \ | ||
57 | " | ||
58 | |||
59 | FILES_${PN}-test = "${libdir}/bluez/test/*" | ||
60 | |||
61 | FILES_${PN}-dbg += "\ | ||
62 | ${libdir}/${BPN}/bluetooth/.debug \ | ||
63 | ${libdir}/bluetooth/plugins/.debug \ | ||
64 | ${libdir}/*/.debug \ | ||
65 | */udev/.debug \ | ||
66 | " | ||
67 | |||
68 | SYSTEMD_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 @@ | |||
1 | require bluez5.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "ce0ef43938e8bfc230f3f06d6ad02d7e" | ||
4 | SRC_URI[sha256sum] = "902299204b7139c913765603c7054a604570aea9e9fddb30454bd1b5e5997860" | ||
5 | |||