blob: 3c227a8ea2082058c28558524a2b9bbe2210bfee [file] [log] [blame]
Andrew Geissler99467da2019-02-25 18:54:23 -06001From 048e1844092cb4b3afd23f16fc2cc70dd2e122b7 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Mon, 24 Dec 2018 17:57:14 -0800
4Subject: [PATCH] Makefile.am: Fix a race issue for tools
5
6Fixed:
7cp ../bluez-5.50/tools/hid2hci.rules tools/97-hid2hci.rules
8cp: cannot create regular file tools/97-hid2hci.rules: No such file or directory
9make[1]: *** [tools/97-hid2hci.rules] Error 1
10
11Upstream-Status: Submitted[https://www.spinics.net/lists/linux-bluetooth/msg78361.html]
12
13Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
14---
15 Makefile.am | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/Makefile.am b/Makefile.am
19index 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--
312.10.2
32