Skip to contentSkip to conversation

package/tinyalsa: add option to enable utility tools

PATCH Applied Konstantin Menyaev via buildroot 1 participant 2 messages Feb 1, 2023 – Feb 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/tinyalsa: add option to enable utility tools

From: Konstantin Menyaev <[email protected]>

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

---
 package/tinyalsa/Config.in   | 9 +++++++++
 package/tinyalsa/tinyalsa.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
package/tinyalsa/Config.in +9 -0
index d9ce22c8a7..b4d4aeb276 100644
@@ -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
package/tinyalsa/tinyalsa.mk +7 -1
index b5c39e35d6..fe6d373ec8 100644
@@ -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))
Signature · 6 lines
2.39.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Wed, 1 Feb 2023 09:00:01 +0300 Konstantin Menyaev via buildroot…

From: Konstantin Menyaev <[email protected]>

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

---
 package/tinyalsa/Config.in   | 9 +++++++++
 package/tinyalsa/tinyalsa.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

Applied to next, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot