From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ginster.hi.pengutronix.de ([2001:67c:670:100:2e4d:54ff:fe67:bfa5] helo=ginster) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iRY9i-00048R-51 for ptxdist@pengutronix.de; Mon, 04 Nov 2019 09:56:10 +0100 Received: from jbe by ginster with local (Exim 4.89) (envelope-from ) id 1iRY9h-0007I0-ST for ptxdist@pengutronix.de; Mon, 04 Nov 2019 09:56:09 +0100 From: Juergen Borleis Date: Mon, 4 Nov 2019 09:56:07 +0100 Message-Id: <20191104085609.27982-1-jbe@pengutronix.de> Subject: [ptxdist] [PATCH 1/3] alsa-lib: provide a way to limit the PCM modules List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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 --- rules/alsa-lib.in | 13 +++++++++++++ rules/alsa-lib.make | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/rules/alsa-lib.in b/rules/alsa-lib.in index adba896ac..edc40e186 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 3dac61ea5..227a4156e 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 -- 2.11.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de