summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-12-14 16:20:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-19 17:54:59 +0000
commit984d908c70c56d842224ab900fe907762ef1f9fa (patch)
tree91fb73bf81cec7756b75cfef676fab5282bbca37 /meta/recipes-connectivity/bluez
parenta1a48b839cb6b41c0873e38183b7a6038623fcb4 (diff)
downloadpoky-984d908c70c56d842224ab900fe907762ef1f9fa.tar.gz
bluez: set correct udevdir
fix-udev-paths.patch: add udevdir/udevrulesdir options Fix the following warning: WARNING: QA Issue: bluez4: Files/directories were installed but not shipped /lib/udev/hid2hci /lib/udev/.debug /lib/udev/.debug/hid2hci [YOCTO #3438] (From OE-Core rev: 9e6cb6326ab688046a712e08fd073efb010db451) Signed-off-by: Constantin Musca <constantinx.musca@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/bluez')
-rw-r--r--meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch37
-rw-r--r--meta/recipes-connectivity/bluez/bluez4.inc2
-rw-r--r--meta/recipes-connectivity/bluez/bluez4_4.101.bb7
3 files changed, 43 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch b/meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch
new file mode 100644
index 0000000000..80899148ee
--- /dev/null
+++ b/meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch
@@ -0,0 +1,37 @@
1Add udevdir/udevrulesdir options
2
3Upstream-Status: Inappropriate [configuration]
4Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
5
6Index: bluez-4.101/Makefile.am
7===================================================================
8--- bluez-4.101.orig/Makefile.am
9+++ bluez-4.101/Makefile.am
10@@ -395,7 +395,7 @@ EXTRA_DIST += audio/bluetooth.conf
11 include Makefile.tools
12
13 if DATAFILES
14-rulesdir = @UDEV_DIR@/rules.d
15+rulesdir = @UDEV_RULES_DIR@
16
17 udev_files =
18
19Index: bluez-4.101/configure.ac
20===================================================================
21--- bluez-4.101.orig/configure.ac
22+++ bluez-4.101/configure.ac
23@@ -61,4 +61,14 @@ if (test -n "${path_systemdunit}"); then
24 fi
25 AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
26
27+AC_ARG_WITH([udevdir],
28+ AS_HELP_STRING([--with-udevdir=DIR], [udev directory]),
29+ [], [with_udevdir=/lib/udev/])
30+AC_SUBST([UDEV_DIR], [$with_udevdir])
31+
32+AC_ARG_WITH([udevrulesdir],
33+ AS_HELP_STRING([--with-udevrulesdir=DIR], [udev rules directory]),
34+ [], [with_udevrulesdir=/lib/udev/rules.d])
35+AC_SUBST([UDEV_RULES_DIR], [$with_udevrulesdir])
36+
37 AC_OUTPUT(Makefile doc/version.xml src/bluetoothd.8 src/bluetooth.service bluez.pc)
diff --git a/meta/recipes-connectivity/bluez/bluez4.inc b/meta/recipes-connectivity/bluez/bluez4.inc
index 6ddd58df0c..bff24d3676 100644
--- a/meta/recipes-connectivity/bluez/bluez4.inc
+++ b/meta/recipes-connectivity/bluez/bluez4.inc
@@ -39,5 +39,7 @@ EXTRA_OECONF = "\
39 --disable-cups \ 39 --disable-cups \
40 --enable-test \ 40 --enable-test \
41 --enable-datafiles \ 41 --enable-datafiles \
42 --with-udevdir=${base_libdir}/udev \
43 --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d \
42" 44"
43 45
diff --git a/meta/recipes-connectivity/bluez/bluez4_4.101.bb b/meta/recipes-connectivity/bluez/bluez4_4.101.bb
index f1a2fe7762..4225999ec8 100644
--- a/meta/recipes-connectivity/bluez/bluez4_4.101.bb
+++ b/meta/recipes-connectivity/bluez/bluez4_4.101.bb
@@ -1,9 +1,10 @@
1require bluez4.inc 1require bluez4.inc
2 2
3PR = "r3" 3PR = "r4"
4 4
5SRC_URI += "file://bluetooth.conf \ 5SRC_URI += "file://bluetooth.conf \
6 file://sbc_mmx.patch" 6 file://sbc_mmx.patch \
7 file://fix-udev-paths.patch"
7 8
8SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad" 9SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad"
9SRC_URI[sha256sum] = "59738410ade9f0e61a13c0f77d9aaffaafe49ba9418107e4ad75fe52846f7487" 10SRC_URI[sha256sum] = "59738410ade9f0e61a13c0f77d9aaffaafe49ba9418107e4ad75fe52846f7487"
@@ -22,7 +23,7 @@ ALLOW_EMPTY_libasound-module-bluez = "1"
22PACKAGES =+ "libasound-module-bluez" 23PACKAGES =+ "libasound-module-bluez"
23 24
24FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" 25FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
25FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" 26FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
26FILES_${PN}-dev += "\ 27FILES_${PN}-dev += "\
27 ${libdir}/bluetooth/plugins/*.la \ 28 ${libdir}/bluetooth/plugins/*.la \
28 ${libdir}/alsa-lib/*.la \ 29 ${libdir}/alsa-lib/*.la \