diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2007-05-04 09:47:29 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2007-05-04 09:47:29 +0000 |
commit | cba0e8d418ffaf59444c825fef6d00eecec9457f (patch) | |
tree | c5df67821532f67445f54cdea0c303b5843c48e3 | |
parent | da56c4fdfcc20217cf5543ee29c886e096d71c3f (diff) | |
download | ptxdist-cba0e8d418ffaf59444c825fef6d00eecec9457f.tar.gz ptxdist-cba0e8d418ffaf59444c825fef6d00eecec9457f.tar.xz |
alsa-lib: adding more menu entries and help for more specific configuration
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7138 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | rules/alsa-lib.in | 81 | ||||
-rw-r--r-- | rules/alsa-lib.make | 56 |
2 files changed, 131 insertions, 6 deletions
diff --git a/rules/alsa-lib.in b/rules/alsa-lib.in index 6302504b0..c63716faa 100644 --- a/rules/alsa-lib.in +++ b/rules/alsa-lib.in @@ -1,6 +1,81 @@ -config ALSA_LIB +menuconfig ALSA_LIB bool - prompt "Alsa Libaries" + prompt "Alsa Libaries " help - FIXME: This item needs to be documented + This is the user space library to kernel's "Advanced Linux Sound Architecture" feature +config ALSA_LIB_RESMGR + bool + depends on ALSA_LIB + prompt "build resmgr" + help + support resmgr (optional component) + +config ALSA_LIB_READ + bool + depends on ALSA_LIB + default y + prompt "build read support" + help + Reading /dev/aload* is the default. Disable it on demand + +config ALSA_LIB_MIXER + bool + depends on ALSA_LIB + default y + prompt "build mixer" + help + Disable the mixer component if you do not need it + +config ALSA_LIB_PCM + bool + depends on ALSA_LIB + default y + prompt "build pcm" + help + Disable the PCM component if you do not need it + +config ALSA_LIB_RAWMIDI + bool + depends on ALSA_LIB + default y + prompt "build raw midi support" + help + Disable the raw MIDI component if you do not need it + +config ALSA_LIB_HWDEP + bool + depends on ALSA_LIB + default y + prompt "build hwdep" + help + Disable the hwdep component if you do not need it + +config ALSA_LIB_SEQ + bool + depends on ALSA_LIB + default y + prompt "build sequencer" + help + Disable the sequencer component if you do not need it + +config ALSA_LIB_INSTR + bool + depends on ALSA_LIB + default y + prompt "build intrument support" + help + Disable the instrument component if you do not need it + +config ALSA_LIB_STATIC + bool + depends on ALSA_LIB + prompt "Build static library only" + depends on BROKEN + help + This will build the static library only. On architectures with + a low register count (like ia32) this makes sense, due to + is allows the compiler to use one additional register and + speed up things (if only one application uses this library) + Note: This feature does not work yet. For example the esound + daemon fails to link due to missing exported functions. diff --git a/rules/alsa-lib.make b/rules/alsa-lib.make index ece6a97fd..8d3e2be97 100644 --- a/rules/alsa-lib.make +++ b/rules/alsa-lib.make @@ -2,7 +2,7 @@ # $Id: template 4565 2006-02-10 14:23:10Z mkl $ # # Copyright (C) 2006 by Erwin Rol -# +# # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions @@ -64,7 +64,53 @@ ALSA_LIB_ENV := $(CROSS_ENV) # # autoconf # -ALSA_LIB_AUTOCONF := $(CROSS_AUTOCONF_USR) +ALSA_LIB_AUTOCONF := $(CROSS_AUTOCONF_USR) \ + --disable-dependency-tracking \ + --with-debug=no + +ifdef PTXCONF_ALSA_LIB_STATIC +ALSA_LIB_AUTOCONF += --enable-static --disable-shared +else +ALSA_LIB_AUTOCONF += --disable-static --enable-shared +endif + +ifdef PTXCONF_ALSA_LIB_RESMGR +ALSA_LIB_AUTOCONF += --enable-resmgr +endif + +ifndef PTXCONF_ALSA_LIB_READ +ALSA_LIB_AUTOCONF += --disable-aload +endif + +ifndef PTXCONF_ALSA_LIB_MIXER +ALSA_LIB_AUTOCONF += --disable-mixer +endif + +ifndef PTXCONF_ALSA_LIB_PCM +ALSA_LIB_AUTOCONF += --disable-pcm +endif + +ifndef PTXCONF_ALSA_LIB_RAWMIDI +ALSA_LIB_AUTOCONF += --disable-rawmidi +endif + +ifndef PTXCONF_ALSA_LIB_HWDEP +ALSA_LIB_AUTOCONF += --disable-hwdep +endif + +ifndef PTXCONF_ALSA_LIB_SEQ +ALSA_LIB_AUTOCONF += --disable-seq +endif + +ifndef PTXCONF_ALSA_LIB_INSTR +ALSA_LIB_AUTOCONF += --disable-instr +endif + +# unhandled, yet +# --with-softfloat +# --with-alsa-devdir=dir +# --with-aload-devdir=dir +# --with-pcm-plugins=<list> $(STATEDIR)/alsa-lib.prepare: $(alsa-lib_prepare_deps_default) @$(call targetinfo, $@) @@ -126,10 +172,13 @@ $(STATEDIR)/alsa-lib.targetinstall: $(alsa-lib_targetinstall_deps_default) libasound.so.2.0.0, \ /usr/lib/libasound.so) +ifdef PTXCONF_ALSA_LIB_MIXER @$(call install_copy, alsa-lib, \ 0, 0, 0755, $(ALSA_LIB_DIR)/modules/mixer/simple/.libs/smixer-ac97.so, \ /lib/alsa-lib/smixer/smixer-ac97.so ) +endif +ifdef PTXCONF_ALSA_LIB_MIXER @$(call install_copy, alsa-lib, \ 0, 0, 0755, $(ALSA_LIB_DIR)/modules/mixer/simple/.libs/smixer-sbase.so, \ /lib/alsa-lib/smixer/smixer-sbase.so ) @@ -137,6 +186,7 @@ $(STATEDIR)/alsa-lib.targetinstall: $(alsa-lib_targetinstall_deps_default) @$(call install_copy, alsa-lib, \ 0, 0, 0755, $(ALSA_LIB_DIR)/modules/mixer/simple/.libs/smixer-hda.so, \ /lib/alsa-lib/smixer/smixer-hda.so ) +endif @$(call install_copy, alsa-lib, \ 0, 0, 0644, $(ALSA_LIB_DIR)/src/conf/alsa.conf, \ @@ -156,7 +206,7 @@ $(STATEDIR)/alsa-lib.targetinstall: $(alsa-lib_targetinstall_deps_default) @$(call install_copy, alsa-lib, \ 0, 0, 0644, $(ALSA_LIB_DIR)/src/conf/pcm/dsnoop.conf, \ - /usr/share/alsa/pcm/dsnoop.conf, n) + /usr/share/alsa/pcm/dsnoop.conf, n) @$(call install_finish, alsa-lib) |