Bladeren bron

audiodlkm: make sa8155 and sa6155 utilize the same obj-option

Make the sa8155 sa8155ivi and sa6155 utilize
the same obj-option. But distinguish the kbuild-option.

Change-Id: I7ff7c7d30670cb4abb42d46f3632136539a9b82e
Signed-off-by: Guodong Hu <[email protected]>
Guodong Hu 5 jaren geleden
bovenliggende
commit
a5b505aa6d
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      Makefile.am

+ 6 - 1
Makefile.am

@@ -37,14 +37,19 @@ obj-m += asoc/codecs/bolero/
 obj-m += asoc/codecs/wcd937x/
 endif
 
-ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sa8155))
+ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sa8155 sa8155ivi sa6155))
 obj-m := ipc/
 obj-m += dsp/
 obj-m += asoc/
 obj-m += asoc/codecs/
 obj-m += soc/
+ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sa8155 sa8155ivi))
 KBUILD_OPTIONS += CONFIG_SND_SOC_SA8155=m
 endif
+ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sa6155))
+KBUILD_OPTIONS += CONFIG_SND_SOC_SA6155=m
+endif
+endif
 
 all:
 	$(shell rm -fr $(shell pwd)/soc/core.h)