aedf2c83d0
Build of avrcp without a2dp is broken since commit
fb9fc969d9
:
/home/buildroot/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: profiles/audio/bluetoothd-avrcp.o: in function `avrcp_handle_set_volume':
avrcp.c:(.text+0x9c4): undefined reference to `media_transport_update_device_volume'
However, build of a2dp without avrcp is also broken:
/data/buildroot-autobuilder/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: profiles/audio/bluetoothd-media.o: in function `.L50':
media.c:(.text+0x508): undefined reference to `avrcp_unregister_player'
/data/buildroot-autobuilder/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/riscv32-buildroot-linux-gnu/10.2.0/../../../../riscv32-buildroot-linux-gnu/bin/ld: profiles/audio/bluetoothd-media.o: in function `match_endpoint_by_path':
media.c:(.text+0x824): undefined reference to `avrcp_register_player'
Fixes:
- http://autobuild.buildroot.org/results/d54cdfc03212fff772a863d1bc8afd3cfb605831
- http://autobuild.buildroot.org/results/64d75af986a4d6e9c5a176efb6e22046f4d82350
So make a single audio option for a2dp and avrcp
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
151 lines
3.9 KiB
Plaintext
151 lines
3.9 KiB
Plaintext
config BR2_PACKAGE_BLUEZ5_UTILS
|
|
bool "bluez-utils"
|
|
depends on BR2_USE_WCHAR # libglib2
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
|
|
depends on BR2_USE_MMU # dbus
|
|
depends on !BR2_STATIC_LIBS # uses dlfcn
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
select BR2_PACKAGE_DBUS
|
|
select BR2_PACKAGE_LIBGLIB2
|
|
help
|
|
BlueZ utils
|
|
|
|
Provides Stack, Library and Tooling for Bluetooth Classic
|
|
and Bluetooth LE.
|
|
|
|
BlueZ utils will use systemd and/or udev if enabled.
|
|
|
|
http://www.bluez.org
|
|
http://www.kernel.org/pub/linux/bluetooth
|
|
|
|
if BR2_PACKAGE_BLUEZ5_UTILS
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_OBEX
|
|
bool "build OBEX support"
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
select BR2_PACKAGE_LIBICAL
|
|
help
|
|
Enable OBEX support.
|
|
|
|
comment "OBEX support needs a toolchain w/ C++"
|
|
depends on !BR2_INSTALL_LIBSTDCPP
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_CLIENT
|
|
bool "build CLI client"
|
|
select BR2_PACKAGE_READLINE
|
|
help
|
|
Build the command line client "bluetoothctl".
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_MONITOR
|
|
bool "build monitor utility"
|
|
default y
|
|
help
|
|
Build monitor utility btmon.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED
|
|
bool "install deprecated tools"
|
|
depends on BR2_PACKAGE_BLUEZ5_UTILS_CLIENT
|
|
help
|
|
Build deprecated tools. These currently include:
|
|
hciattach, hciconfig, hcitool, hcidump, rfcomm, sdptool,
|
|
ciptool, gatttool.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL
|
|
bool "build experimental tools"
|
|
help
|
|
Build experimental tools. This is currently only the
|
|
"Nokia OBEX PC Suite tool". So, only if OBEX support is
|
|
enabled this option has an effect.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO
|
|
bool "build audio plugins (a2dp and avrcp)"
|
|
default y
|
|
help
|
|
Build plugins for audio profiles (for A2DP and AVRCP).
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH
|
|
bool "build health plugin"
|
|
help
|
|
Build plugin for health profiles.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID
|
|
bool "build hid plugin"
|
|
default y
|
|
select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HOG
|
|
help
|
|
Build plugin for HID (input) profiles.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HOG
|
|
bool "build hog plugin"
|
|
default y
|
|
help
|
|
Build plugin for HoG (input) profiles.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MESH
|
|
bool "build mesh plugin"
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # ell
|
|
select BR2_PACKAGE_ELL
|
|
select BR2_PACKAGE_JSON_C
|
|
select BR2_PACKAGE_READLINE
|
|
help
|
|
Build plugin for Mesh support.
|
|
|
|
comment "mesh profile needs a toolchain w/ headers >= 4.12"
|
|
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI
|
|
bool "build midi plugin"
|
|
select BR2_PACKAGE_ALSA_LIB
|
|
select BR2_PACKAGE_ALSA_LIB_SEQ
|
|
help
|
|
Build MIDI support via ALSA sequencer.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NETWORK
|
|
bool "build network plugin"
|
|
default y
|
|
help
|
|
Build plugin for PANU, NAP, GN profiles.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC
|
|
bool "build nfc plugin"
|
|
help
|
|
Build plugin for NFC pairing.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP
|
|
bool "build sap plugin"
|
|
help
|
|
Build plugin for SAP profile.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS
|
|
bool "build sixaxis plugin"
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
|
help
|
|
Build sixaxis plugin (support Sony Dualshock
|
|
controller)
|
|
|
|
comment "sixaxis plugin needs udev /dev management"
|
|
depends on !BR2_PACKAGE_HAS_UDEV
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_TEST
|
|
bool "install test scripts"
|
|
help
|
|
Install the python test scripts from the "test" directory.
|
|
|
|
config BR2_PACKAGE_BLUEZ5_UTILS_TOOLS_HID2HCI
|
|
bool "build hid2hci tool"
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
|
help
|
|
Build hid2hci tool
|
|
|
|
comment "hid2hci tool needs udev /dev management"
|
|
depends on !BR2_PACKAGE_HAS_UDEV
|
|
|
|
endif
|
|
|
|
comment "bluez5-utils needs a toolchain w/ wchar, threads, headers >= 3.4, dynamic library"
|
|
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || BR2_STATIC_LIBS
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on BR2_USE_MMU
|