Initial Commit
- initial default booting image
This commit is contained in:
47
package/bluez-alsa/Config.in
Normal file
47
package/bluez-alsa/Config.in
Normal file
@@ -0,0 +1,47 @@
|
||||
config BR2_PACKAGE_BLUEZ_ALSA
|
||||
bool "bluez-alsa"
|
||||
depends on !BR2_STATIC_LIBS # bluez5
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5
|
||||
depends on BR2_USE_MMU # bluez5 -> dbus
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
select BR2_PACKAGE_ALSA_LIB
|
||||
select BR2_PACKAGE_ALSA_LIB_MIXER
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_SBC
|
||||
# samplerate ALSA plugin is needed for proper sample rate
|
||||
# conversion with Bluetooth devices
|
||||
select BR2_PACKAGE_LIBSAMPLERATE if BR2_PACKAGE_ALSA_PLUGINS
|
||||
help
|
||||
Bluetooth Audio ALSA Backend.
|
||||
|
||||
https://github.com/Arkq/bluez-alsa
|
||||
|
||||
if BR2_PACKAGE_BLUEZ_ALSA
|
||||
|
||||
config BR2_PACKAGE_BLUEZ_ALSA_HCITOP
|
||||
bool "hcitop"
|
||||
depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
|
||||
select BR2_PACKAGE_LIBBSD
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
Enable top-like monitoring tool for HCI.
|
||||
|
||||
config BR2_PACKAGE_BLUEZ_ALSA_RFCOMM
|
||||
bool "rfcomm"
|
||||
select BR2_PACKAGE_READLINE
|
||||
help
|
||||
Simple tool for sending RFCOMM commands.
|
||||
|
||||
endif
|
||||
|
||||
comment "bluez-alsa needs a toolchain w/ wchar, NPTL, headers >= 3.4, dynamic library, gcc >= 4.9"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_USE_MMU
|
||||
3
package/bluez-alsa/bluez-alsa.hash
Normal file
3
package/bluez-alsa/bluez-alsa.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated:
|
||||
sha256 933fe898dfac21fdfeb5f4ffa685c2aa2db9c064d639170ac2652f156e956a2a bluez-alsa-4.3.1.tar.gz
|
||||
sha256 956564dcf06ba65cd7a5eb6cdfd695e2ab0f09ea9684e4eaf079f5d533bd206d LICENSE
|
||||
111
package/bluez-alsa/bluez-alsa.mk
Normal file
111
package/bluez-alsa/bluez-alsa.mk
Normal file
@@ -0,0 +1,111 @@
|
||||
################################################################################
|
||||
#
|
||||
# bluez-alsa
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BLUEZ_ALSA_VERSION = 4.3.1
|
||||
BLUEZ_ALSA_SITE = $(call github,Arkq,bluez-alsa,v$(BLUEZ_ALSA_VERSION))
|
||||
BLUEZ_ALSA_LICENSE = MIT
|
||||
BLUEZ_ALSA_LICENSE_FILES = LICENSE
|
||||
BLUEZ_ALSA_DEPENDENCIES = alsa-lib bluez5_utils libglib2 sbc host-pkgconf
|
||||
|
||||
# git repo, no configure
|
||||
BLUEZ_ALSA_AUTORECONF = YES
|
||||
|
||||
BLUEZ_ALSA_CONF_OPTS = \
|
||||
--enable-a2dpconf \
|
||||
--enable-aplay \
|
||||
--enable-cli \
|
||||
--disable-debug-time \
|
||||
--with-alsaplugindir=/usr/lib/alsa-lib \
|
||||
--with-alsaconfdir=/etc/alsa/conf.d
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_PLUGINS),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += alsa-plugins
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FDK_AAC),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += fdk-aac
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-aac
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-aac
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LAME),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += lame
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-mp3lame
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-mp3lame
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPG123),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += mpg123
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-mpg123
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-mpg123
|
||||
endif
|
||||
|
||||
# no build dependency, disables internal HFP in favor of oFonos HFP profile
|
||||
ifeq ($(BR2_PACKAGE_OFONO),y)
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-ofono
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-ofono
|
||||
endif
|
||||
|
||||
# no build dependency, enables integration with UPower D-Bus service
|
||||
ifeq ($(BR2_PACKAGE_UPOWER),y)
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-upower
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-upower
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_HCITOP),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += libbsd ncurses
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-hcitop
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-hcitop
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ_ALSA_RFCOMM),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += readline
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-rfcomm
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-rfcomm
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI),y)
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-midi
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-midi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOPENAPTX),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += libopenaptx
|
||||
BLUEZ_ALSA_CONF_OPTS += --with-libopenaptx --enable-aptx --enable-aptx-hd
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --without-libopenaptx --disable-aptx --disable-aptx-hd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUS),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += opus
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-opus
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-opus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += systemd
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-systemd
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-systemd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPANDSP),y)
|
||||
BLUEZ_ALSA_DEPENDENCIES += spandsp
|
||||
BLUEZ_ALSA_CONF_OPTS += --enable-msbc
|
||||
else
|
||||
BLUEZ_ALSA_CONF_OPTS += --disable-msbc
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user