1config BR2_PACKAGE_BLUEZ5_UTILS
2	bool "bluez-utils"
3	depends on BR2_USE_WCHAR # libglib2
4	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
5	depends on BR2_USE_MMU # dbus
6	depends on !BR2_STATIC_LIBS # uses dlfcn
7	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
8	depends on BR2_TOOLCHAIN_HAS_SYNC_4
9	select BR2_PACKAGE_DBUS
10	select BR2_PACKAGE_LIBGLIB2
11	help
12	  BlueZ utils
13
14	  Provides Stack, Library and Tooling for Bluetooth Classic
15	  and Bluetooth LE.
16
17	  BlueZ utils will use systemd and/or udev if enabled.
18
19	  http://www.bluez.org
20	  http://www.kernel.org/pub/linux/bluetooth
21
22if BR2_PACKAGE_BLUEZ5_UTILS
23
24config BR2_PACKAGE_BLUEZ5_UTILS_OBEX
25	bool "build OBEX support"
26	depends on BR2_INSTALL_LIBSTDCPP
27	select BR2_PACKAGE_LIBICAL
28	help
29	  Enable OBEX support.
30
31comment "OBEX support needs a toolchain w/ C++"
32	depends on !BR2_INSTALL_LIBSTDCPP
33
34config BR2_PACKAGE_BLUEZ5_UTILS_CLIENT
35	bool "build CLI client"
36	select BR2_PACKAGE_READLINE
37	help
38	  Build the command line client "bluetoothctl".
39
40config BR2_PACKAGE_BLUEZ5_UTILS_MONITOR
41	bool "build monitor utility"
42	help
43	  Build monitor utility btmon.
44
45config BR2_PACKAGE_BLUEZ5_UTILS_TOOLS
46	bool "build tools"
47	help
48	  Build tools like bluemoon, btattach, hex2hcd, l2test,
49	  l2ping, mpris-proxy, rctest.
50
51config BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED
52	bool "install deprecated tools"
53	depends on BR2_PACKAGE_BLUEZ5_UTILS_CLIENT || BR2_PACKAGE_BLUEZ5_UTILS_TOOLS
54	help
55	  Build deprecated tools.
56
57	  When "build tools" is selected these tools are installed:
58	  hciattach, hciconfig, hcitool, hcidump, rfcomm, sdptool,
59	  ciptool.
60
61	  When CLI client is enabled "gatttool" is installed.
62
63config BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL
64	bool "build experimental tools"
65	help
66	  Build experimental tools. This is currently only the
67	  "Nokia OBEX PC Suite tool". So, only if OBEX support is
68	  enabled this option has an effect.
69
70config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO
71	bool "build audio plugins (a2dp and avrcp)"
72	help
73	  Build plugins for audio profiles (for A2DP and AVRCP).
74
75config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH
76	bool "build health plugin"
77	help
78	  Build plugin for health profiles.
79
80config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID
81	bool "build hid plugin"
82	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
83	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HOG
84	help
85	  Build plugin for HID (input) profiles.
86
87comment "hid plugin needs a toolchain w/ headers >= 3.18"
88	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
89
90config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HOG
91	bool "build hog plugin"
92	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
93	help
94	  Build plugin for HoG (input) profiles.
95
96comment "hog plugin needs a toolchain w/ headers >= 3.18"
97	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
98
99config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MESH
100	bool "build mesh plugin"
101	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # ell
102	select BR2_PACKAGE_ELL
103	select BR2_PACKAGE_JSON_C
104	select BR2_PACKAGE_READLINE
105	help
106	  Build plugin for Mesh support.
107
108comment "mesh profile needs a toolchain w/ headers >= 4.12"
109	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
110
111config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI
112	bool "build midi plugin"
113	select BR2_PACKAGE_ALSA_LIB
114	select BR2_PACKAGE_ALSA_LIB_SEQ
115	help
116	  Build MIDI support via ALSA sequencer.
117
118config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NETWORK
119	bool "build network plugin"
120	default y
121	help
122	  Build plugin for PANU, NAP, GN profiles.
123
124config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC
125	bool "build nfc plugin"
126	help
127	  Build plugin for NFC pairing.
128
129config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP
130	bool "build sap plugin"
131	help
132	  Build plugin for SAP profile.
133
134config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS
135	bool "build sixaxis plugin"
136	depends on BR2_PACKAGE_HAS_UDEV
137	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 # hid plugin
138	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID # runtime
139	help
140	  Build sixaxis plugin (support Sony Dualshock
141	  controller)
142
143comment "sixaxis plugin needs a toolchain w/ headers >= 3.18"
144	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
145
146comment "sixaxis plugin needs udev /dev management"
147	depends on !BR2_PACKAGE_HAS_UDEV
148
149config BR2_PACKAGE_BLUEZ5_UTILS_TEST
150	bool "install test scripts"
151	help
152	  Install the python test scripts from the "test" directory.
153
154config BR2_PACKAGE_BLUEZ5_UTILS_TOOLS_HID2HCI
155	bool "build hid2hci tool"
156	depends on BR2_PACKAGE_HAS_UDEV
157	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 # hid plugin
158	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID # runtime
159	select BR2_PACKAGE_BLUEZ5_UTILS_TOOLS
160	help
161	  Build hid2hci tool
162
163comment "hid2hci tool needs a toolchain w/ headers >= 3.18"
164	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
165
166comment "hid2hci tool needs udev /dev management"
167	depends on !BR2_PACKAGE_HAS_UDEV
168
169endif
170
171comment "bluez5-utils needs a toolchain w/ wchar, threads, headers >= 3.4, dynamic library"
172	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
173		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || BR2_STATIC_LIBS
174	depends on BR2_TOOLCHAIN_HAS_SYNC_4
175	depends on BR2_USE_MMU
176