Skip to contentSkip to conversation

build: Make bt_shell conditional to readline

PATCH In review Luiz Augusto von Dentz 2 participants 3 messages Apr 20, 2018 – Apr 26, 2018

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 build: Make bt_shell conditional to readline

From: Luiz Augusto von Dentz <[email protected]>

bt_shell APIs shall only be build if readline is present on the system since it currently depend on it.

---
 Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Makefile.am +5 -1
index daf34b6ca..9c3c17139 100644
@@ -119,7 +119,11 @@ shared_sources = src/shared/io.h src/shared/timeout.h \
 			src/shared/gatt-server.h src/shared/gatt-server.c \
 			src/shared/gatt-db.h src/shared/gatt-db.c \
 			src/shared/gap.h src/shared/gap.c \
-			src/shared/tty.h src/shared/shell.c src/shared/shell.h
+			src/shared/tty.h
+
+if READLINE
+shared_sources += src/shared/shell.c src/shared/shell.h
+endif
 
 src_libshared_glib_la_SOURCES = $(shared_sources) \
 				src/shared/io-glib.c \
Signature · 1 line
2.14.3
Tested-by on v1 1/1
#1 lore raw

Hello,

Quoted 4 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

bt_shell APIs shall only be build if readline is present on the system since it currently depend on it.

I've tested with a few different BlueZ configurations (not all combinations though), and all of them built fine. The specific configuration that was failing to build due to the dependency on readline no longer fails to build.

Thanks a lot Luiz for having looked so quickly at this bug report!

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
author maintainer Applied
#2 lore raw

Hi,

Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 4 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

bt_shell APIs shall only be build if readline is present on the system since it currently depend on it.

Quoted 8 lines

I've tested with a few different BlueZ configurations (not all combinations though), and all of them built fine. The specific configuration that was failing to build due to the dependency on readline no longer fails to build.

Thanks a lot Luiz for having looked so quickly at this bug report!

Applied.

Signature · 1 line
Luiz Augusto von Dentz