diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2018-12-28 01:01:48 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:39 +0000 |
| commit | 8c31da0835c4bec0b1b461a787ca722700dd47d4 (patch) | |
| tree | a58d58971e18915a6a93f76192e06bb8ed094109 | |
| parent | 67f6006b8e32e041dfd6305aba9110420e1f4d0e (diff) | |
| download | poky-8c31da0835c4bec0b1b461a787ca722700dd47d4.tar.gz | |
bluez5: Fix a race issue for tools
Fixed:
cp ../bluez-5.50/tools/hid2hci.rules tools/97-hid2hci.rules
cp: cannot create regular file tools/97-hid2hci.rules: No such file or directory
make[1]: *** [tools/97-hid2hci.rules] Error 1
(From OE-Core rev: 5cb2b165cf89a307531e199248bc98fb51541521)
(From OE-Core rev: be0c94a40972618433c85fc097ede255f95e6c1d)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-Makefile.am-Fix-a-race-issue-for-tools.patch | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 9d9739e952..edb44b22a5 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
| @@ -52,6 +52,7 @@ SRC_URI = "\ | |||
| 52 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ | 52 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ |
| 53 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ | 53 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ |
| 54 | file://0001-test-gatt-Fix-hung-issue.patch \ | 54 | file://0001-test-gatt-Fix-hung-issue.patch \ |
| 55 | file://0001-Makefile.am-Fix-a-race-issue-for-tools.patch \ | ||
| 55 | " | 56 | " |
| 56 | S = "${WORKDIR}/bluez-${PV}" | 57 | S = "${WORKDIR}/bluez-${PV}" |
| 57 | 58 | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-Makefile.am-Fix-a-race-issue-for-tools.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-Makefile.am-Fix-a-race-issue-for-tools.patch new file mode 100644 index 0000000000..3c227a8ea2 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-Makefile.am-Fix-a-race-issue-for-tools.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 048e1844092cb4b3afd23f16fc2cc70dd2e122b7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Mon, 24 Dec 2018 17:57:14 -0800 | ||
| 4 | Subject: [PATCH] Makefile.am: Fix a race issue for tools | ||
| 5 | |||
| 6 | Fixed: | ||
| 7 | cp ../bluez-5.50/tools/hid2hci.rules tools/97-hid2hci.rules | ||
| 8 | cp: cannot create regular file tools/97-hid2hci.rules: No such file or directory | ||
| 9 | make[1]: *** [tools/97-hid2hci.rules] Error 1 | ||
| 10 | |||
| 11 | Upstream-Status: Submitted[https://www.spinics.net/lists/linux-bluetooth/msg78361.html] | ||
| 12 | |||
| 13 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 14 | --- | ||
| 15 | Makefile.am | 1 + | ||
| 16 | 1 file changed, 1 insertion(+) | ||
| 17 | |||
| 18 | diff --git a/Makefile.am b/Makefile.am | ||
| 19 | index 6d1ff11..35a01f2 100644 | ||
| 20 | --- a/Makefile.am | ||
| 21 | +++ b/Makefile.am | ||
| 22 | @@ -504,6 +504,7 @@ src/builtin.h: src/genbuiltin $(builtin_sources) | ||
| 23 | $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@ | ||
| 24 | |||
| 25 | tools/%.rules: | ||
| 26 | + [ -e tools ] || $(MKDIR_P) tools | ||
| 27 | $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@ | ||
| 28 | |||
| 29 | $(lib_libbluetooth_la_OBJECTS): $(local_headers) | ||
| 30 | -- | ||
| 31 | 2.10.2 | ||
| 32 | |||
