diff options
-rw-r--r-- | meta/recipes-connectivity/bluez/bluez4-4.101/fix-udev-paths.patch | 37 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez/bluez4.inc | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez/bluez4_4.101.bb | 7 |
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 @@ | |||
1 | Add udevdir/udevrulesdir options | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
5 | |||
6 | Index: 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 | |||
19 | Index: 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 @@ | |||
1 | require bluez4.inc | 1 | require bluez4.inc |
2 | 2 | ||
3 | PR = "r3" | 3 | PR = "r4" |
4 | 4 | ||
5 | SRC_URI += "file://bluetooth.conf \ | 5 | SRC_URI += "file://bluetooth.conf \ |
6 | file://sbc_mmx.patch" | 6 | file://sbc_mmx.patch \ |
7 | file://fix-udev-paths.patch" | ||
7 | 8 | ||
8 | SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad" | 9 | SRC_URI[md5sum] = "fb42cb7038c380eb0e2fa208987c96ad" |
9 | SRC_URI[sha256sum] = "59738410ade9f0e61a13c0f77d9aaffaafe49ba9418107e4ad75fe52846f7487" | 10 | SRC_URI[sha256sum] = "59738410ade9f0e61a13c0f77d9aaffaafe49ba9418107e4ad75fe52846f7487" |
@@ -22,7 +23,7 @@ ALLOW_EMPTY_libasound-module-bluez = "1" | |||
22 | PACKAGES =+ "libasound-module-bluez" | 23 | PACKAGES =+ "libasound-module-bluez" |
23 | 24 | ||
24 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | 25 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" |
25 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" | 26 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" |
26 | FILES_${PN}-dev += "\ | 27 | FILES_${PN}-dev += "\ |
27 | ${libdir}/bluetooth/plugins/*.la \ | 28 | ${libdir}/bluetooth/plugins/*.la \ |
28 | ${libdir}/alsa-lib/*.la \ | 29 | ${libdir}/alsa-lib/*.la \ |