package/tinyalsa: add option to enable utility tools

Add option to enable useful tools,
like tinyplay, tinymix, etc.

Signed-off-by: Konstantin Menyaev <KAMenyaev@sberdevices.ru>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023.05.x
Konstantin Menyaev 2023-02-01 09:00:01 +03:00 committed by Thomas Petazzoni
parent e8c4b360fd
commit f2c1e10b8a
2 changed files with 16 additions and 1 deletions

View File

@ -13,5 +13,14 @@ config BR2_PACKAGE_TINYALSA
https://github.com/tinyalsa/tinyalsa
if BR2_PACKAGE_TINYALSA
config BR2_PACKAGE_TINYALSA_TOOLS
bool "tinyalsa tools"
help
Build utility tools (tinyplay, tinycap, tinymix, tinypcminfo)
endif #BR2_PACKAGE_TINYALSA
comment "tinyalsa needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@ -9,6 +9,12 @@ TINYALSA_SITE = $(call github,tinyalsa,tinyalsa,v$(TINYALSA_VERSION))
TINYALSA_LICENSE = BSD-3-Clause
TINYALSA_LICENSE_FILES = NOTICE
TINYALSA_INSTALL_STAGING = YES
TINYALSA_CONF_OPTS = -Ddocs=disabled -Dexamples=disabled -Dutils=disabled
TINYALSA_CONF_OPTS = -Ddocs=disabled -Dexamples=disabled
ifeq ($(BR2_PACKAGE_TINYALSA_TOOLS),y)
TINYALSA_CONF_OPTS += -Dutils=enabled
else
TINYALSA_CONF_OPTS += -Dutils=disabled
endif
$(eval $(meson-package))