[2/2] python3: add optional dependency on bluez5_utils-headers

Message ID 20180913115656.11794-2-grzegorz@blach.pl
State Accepted
Headers show
Series
  • [1/2] bluez5_utils-headers: new package
Related show

Commit Message

Grzegorz Blach Sept. 13, 2018, 11:56 a.m.
When python3 depends on bluez5_utils-headers,
python3 is build with bluetooth support.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 package/python3/python3.mk | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 5e94e8e726..913e0773ca 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -255,6 +255,11 @@  endif
 # Provided to other packages
 PYTHON3_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/
 
+# Support for socket.AF_BLUETOOTH
+ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
+	PYTHON3_DEPENDENCIES += bluez5_utils-headers
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))