Prechádzať zdrojové kódy

audio-kernel: Add support to compile statically on Kona

Add include and source paths to support compilation
of audio drivers into kernel image on Kona.

Change-Id: I41b5ef7e5d20d517193e8295a61035a28692cb32
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 5 rokov pred
rodič
commit
8e14752f35
2 zmenil súbory, kde vykonal 10 pridanie a 0 odobranie
  1. 8 0
      Makefile
  2. 2 0
      asoc/codecs/Kbuild

+ 8 - 0
Makefile

@@ -11,10 +11,14 @@ ifeq ($(CONFIG_ARCH_SDMSHRIKE), y)
 include $(srctree)/techpack/audio/config/sm8150auto.conf
 export
 endif
+ifeq ($(CONFIG_ARCH_KONA), y)
+include $(srctree)/techpack/audio/config/konaauto.conf
+endif
 
 # Use USERINCLUDE when you must reference the UAPI directories only.
 USERINCLUDE     += \
                 -I$(srctree)/techpack/audio/include/uapi \
+                -I$(srctree)/techpack/audio/include
 
 # Use LINUXINCLUDE when you must reference the include/ directory.
 # Needed to be compatible with the O= option
@@ -34,6 +38,10 @@ ifeq ($(CONFIG_ARCH_SDMSHRIKE), y)
 LINUXINCLUDE    += \
                 -include $(srctree)/techpack/audio/config/sm8150autoconf.h
 endif
+ifeq ($(CONFIG_ARCH_KONA), y)
+LINUXINCLUDE    += \
+                -include $(srctree)/techpack/audio/config/konaautoconf.h
+endif
 
 obj-y += soc/
 obj-y += dsp/

+ 2 - 0
asoc/codecs/Kbuild

@@ -196,6 +196,8 @@ endif
 ifeq ($(KERNEL_BUILD), 1)
 	obj-y	+= wcd934x/
 	obj-y	+= wcd937x/
+	obj-y	+= wcd938x/
+	obj-y	+= bolero/
 endif
 # Module information used by KBuild framework
 obj-$(CONFIG_WCD9XXX_CODEC_CORE) += wcd_core_dlkm.o