Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e14752f authored by Karthikeyan Mani's avatar Karthikeyan Mani
Browse files

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: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent 586382a7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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