]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/bluez5_utils/0002-bt_shell-APIs-shall-only-be-build-if-readline-is-pre.patch
bluez5_utils: add patch to fix readline issue
[coffee/buildroot.git] / package / bluez5_utils / 0002-bt_shell-APIs-shall-only-be-build-if-readline-is-pre.patch
1 From 654444dd8faf02b46f41d81f3d9c623d57bdd399 Mon Sep 17 00:00:00 2001
2 From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
3 Date: Fri, 20 Apr 2018 16:04:17 +0200
4 Subject: [PATCH] bt_shell APIs shall only be build if readline is present on
5  the system since it currently depend on it.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Upstream-status: https://marc.info/?l=linux-bluetooth&m=152422938306592&w=2
9 ---
10  Makefile.am | 6 +++++-
11  1 file changed, 5 insertions(+), 1 deletion(-)
12
13 diff --git a/Makefile.am b/Makefile.am
14 index daf34b6ca..9c3c17139 100644
15 --- a/Makefile.am
16 +++ b/Makefile.am
17 @@ -119,7 +119,11 @@ shared_sources = src/shared/io.h src/shared/timeout.h \
18                         src/shared/gatt-server.h src/shared/gatt-server.c \
19                         src/shared/gatt-db.h src/shared/gatt-db.c \
20                         src/shared/gap.h src/shared/gap.c \
21 -                       src/shared/tty.h src/shared/shell.c src/shared/shell.h
22 +                       src/shared/tty.h
23 +
24 +if READLINE
25 +shared_sources += src/shared/shell.c src/shared/shell.h
26 +endif
27  
28  src_libshared_glib_la_SOURCES = $(shared_sources) \
29                                 src/shared/io-glib.c \
30 -- 
31 2.14.3
32