summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2019-11-04 09:56:07 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-11-04 19:54:42 +0100
commit6f13ca341e9d959e9affdd140e61bc21ccaa0e04 (patch)
tree830a3caa4c7ddc4a279f50a4b1884c16c2ce4bfc
parentbd235377eb5f4b957949c3a1671ecace68b23ac1 (diff)
downloadptxdist-6f13ca341e9d959e9affdd140e61bc21ccaa0e04.tar.gz
alsa-lib: provide a way to limit the PCM modules
On some platforms it makes sense to limit the available PCM modules to the really required ones (application specific) or useful ones (hardware specific). This change enables the user to select specific modules which will be later on present in the run-time system. To be backward compatible, the default keyword 'all' will still build all available PCM modules. The list of available PCM modules is part of the package's 'configure' help text. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/alsa-lib.in13
-rw-r--r--rules/alsa-lib.make8
2 files changed, 19 insertions, 2 deletions
diff --git a/rules/alsa-lib.in b/rules/alsa-lib.in
index adba896..edc40e1 100644
--- a/rules/alsa-lib.in
+++ b/rules/alsa-lib.in
@@ -47,6 +47,19 @@ config ALSA_LIB_PCM
help
Disable the PCM component if you do not need it
+config ALSA_LIB_PCM_MODULES
+ depends on ALSA_LIB_PCM
+ string
+ prompt "pcm modules"
+ default "all"
+ help
+ You can use the keyword 'all' here for all supported PCM modules or a
+ comma separated list of required module keywords. The list of module
+ keywords is:
+ copy linear route mulaw alaw adpcm rate plug multi shm file null
+ empty share meter hooks lfloat ladspa dmix dshare dsnoop asym
+ iec958 softvol extplug ioplug mmap_emul
+
config ALSA_LIB_RAWMIDI
bool
default y
diff --git a/rules/alsa-lib.make b/rules/alsa-lib.make
index 3dac61e..227a415 100644
--- a/rules/alsa-lib.make
+++ b/rules/alsa-lib.make
@@ -62,8 +62,12 @@ ALSA_LIB_CONF_OPT := \
--with-pthread \
--with-librt \
--with-alsa-devdir=/dev/snd \
- --with-aload-devdir=/dev \
- --with-pcm-plugins=all
+ --with-aload-devdir=/dev
+
+ifdef PTXCONF_ALSA_LIB_PCM
+ALSA_LIB_CONF_OPT += \
+ --with-pcm-plugins=$(PTXCONF_ALSA_LIB_PCM_MODULES)
+endif
# ----------------------------------------------------------------------------
# Target-Install