use immediate set in target Makefiles
[openwrt/openwrt.git] / target / linux / xburst / modules.mk
1
2
3 SOUND_MENU:=Sound Support
4
5 define KernelPackage/sound-soc-jz4740
6 SUBMENU:=$(SOUND_MENU)
7 DEPENDS:=kmod-sound-soc-core @TARGET_xburst @BROKEN
8 TITLE:=JZ4740 SoC sound support
9 KCONFIG:=CONFIG_SND_JZ4740_SOC CONFIG_SND_JZ4740_SOC_I2S
10 FILES:= \
11 $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740.ko \
12 $(LINUX_DIR)/sound/soc/jz4740/snd-soc-jz4740-i2s.ko
13 AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740 snd-soc-jz4740-i2s)
14 endef
15
16 define KernelPackage/sound-soc-jz4740-codec
17 SUBMENU:=$(SOUND_MENU)
18 DEPENDS:=kmod-sound-soc-core @TARGET_xburst @BROKEN
19 TITLE:=JZ4740 SoC internal codec support
20 KCONFIG:=CONFIG_SND_SOC_JZ4740_CODEC
21 FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-jz4740-codec.ko
22 AUTOLOAD:=$(call AutoLoad,60,snd-soc-jz4740-codec)
23 endef
24
25 define KernelPackage/sound-soc-xburst/default
26 SUBMENU:=$(SOUND_MENU)
27 DEPENDS:=kmod-sound-soc-jz4740 kmod-sound-soc-jz4740-codec @TARGET_xburst_$(if $(4),$(4),$(3)) @BROKEN
28 TITLE:=$(1) sound support
29 KCONFIG:=CONFIG_SND_JZ4740_SOC_$(2)
30 FILES:=$(LINUX_DIR)/sound/soc/jz4740/snd-soc-$(3).ko
31 AUTOLOAD:=$(call AutoLoad,65,snd-soc-$(3))
32 endef
33
34 define KernelPackage/sound-soc-qilb60
35 $(call KernelPackage/sound-soc-xburst/default,QI NanoNote,QI_LB60,qi-lb60,qi_lb60)
36 endef
37
38 $(eval $(call KernelPackage,sound-soc-jz4740))
39 $(eval $(call KernelPackage,sound-soc-jz4740-codec))
40 $(eval $(call KernelPackage,sound-soc-qilb60))