diff options
author | Michal Marek <mmarek@suse.cz> | 2009-05-26 11:07:52 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-29 05:49:42 -0400 |
commit | 0528c7494e67c30329d086df141d2dd691f01556 (patch) | |
tree | 798fcad072aa75ec3447049aaf79161e5beb6faa /sound/isa/sb/Makefile | |
parent | cd86a536c81e9300d984327517548ca0652eebf9 (diff) |
ALSA: clean up the logic for building sequencer modules
Instead of mangling the CONFIG_* variables in the makefiles over and
over, set a few helper variables in Kconfig.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb/Makefile')
-rw-r--r-- | sound/isa/sb/Makefile | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/isa/sb/Makefile b/sound/isa/sb/Makefile index 1098a56b2f4b..faeffceb01b7 100644 --- a/sound/isa/sb/Makefile +++ b/sound/isa/sb/Makefile | |||
@@ -13,14 +13,6 @@ snd-sbawe-objs := sbawe.o emu8000.o | |||
13 | snd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o | 13 | snd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o |
14 | snd-es968-objs := es968.o | 14 | snd-es968-objs := es968.o |
15 | 15 | ||
16 | # | ||
17 | # this function returns: | ||
18 | # "m" - CONFIG_SND_SEQUENCER is m | ||
19 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
20 | # otherwise parameter #1 value | ||
21 | # | ||
22 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
23 | |||
24 | # Toplevel Module Dependency | 16 | # Toplevel Module Dependency |
25 | obj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o | 17 | obj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o |
26 | obj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o | 18 | obj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o |
@@ -33,4 +25,4 @@ ifeq ($(CONFIG_SND_SB16_CSP),y) | |||
33 | obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o | 25 | obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o |
34 | obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o | 26 | obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o |
35 | endif | 27 | endif |
36 | obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emu8000-synth.o | 28 | obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emu8000-synth.o |