blob: b6cb978393ec1569dd0eeaccd22411717dbba934 [file] [log] [blame]
Brad Bishop64c979e2019-11-04 13:55:29 -05001Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@intel.com>
Andrew Geissler99467da2019-02-25 18:54:23 -06003
Brad Bishop64c979e2019-11-04 13:55:29 -05004From 117c41242c01e057295aed80ed973c6dc7e35fe2 Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Tue, 8 Oct 2019 11:01:56 +0100
7Subject: [PATCH BlueZ] Makefile.am: add missing mkdir in rules generation
Andrew Geissler99467da2019-02-25 18:54:23 -06008
Brad Bishop64c979e2019-11-04 13:55:29 -05009In parallel out-of-tree builds it's possible that tools/*.rules are
10generated before the target directory has been implicitly created. Solve this by
11creating the directory before writing into it.
Andrew Geissler99467da2019-02-25 18:54:23 -060012---
13 Makefile.am | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/Makefile.am b/Makefile.am
Brad Bishop64c979e2019-11-04 13:55:29 -050017index 2ac28b23d..e7bcd2366 100644
Andrew Geissler99467da2019-02-25 18:54:23 -060018--- a/Makefile.am
19+++ b/Makefile.am
Brad Bishop64c979e2019-11-04 13:55:29 -050020@@ -589,6 +589,7 @@ src/builtin.h: src/genbuiltin $(builtin_sources)
Andrew Geissler99467da2019-02-25 18:54:23 -060021 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
22
23 tools/%.rules:
Brad Bishop64c979e2019-11-04 13:55:29 -050024+ $(AM_V_at)$(MKDIR_P) tools
Andrew Geissler99467da2019-02-25 18:54:23 -060025 $(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
26
27 $(lib_libbluetooth_la_OBJECTS): $(local_headers)
28--
Brad Bishop64c979e2019-11-04 13:55:29 -0500292.20.1
Andrew Geissler99467da2019-02-25 18:54:23 -060030