5faacb3a7e
Based on where the code is synced the driver should allow both static and dynamic linked compilation. Also remove __exit for modules loaded from another common init/exit functions. Change-Id: Ib58f152002aba3af4446f9bbd9b82c279212bd0a Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# auto-detect subdirs
|
|
ifeq ($(CONFIG_ARCH_SDM845), y)
|
|
include $(srctree)/techpack/audio/config/sdm845auto.conf
|
|
export
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDM670), y)
|
|
include $(srctree)/techpack/audio/config/sdm670auto_static.conf
|
|
export
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
|
|
include $(srctree)/techpack/audio/config/sdxpoorwillsauto.conf
|
|
export
|
|
endif
|
|
|
|
# Use USERINCLUDE when you must reference the UAPI directories only.
|
|
USERINCLUDE += \
|
|
-I$(srctree)/techpack/audio/include/uapi \
|
|
|
|
# Use LINUXINCLUDE when you must reference the include/ directory.
|
|
# Needed to be compatible with the O= option
|
|
LINUXINCLUDE += \
|
|
-I$(srctree)/techpack/audio/include/uapi \
|
|
-I$(srctree)/techpack/audio/include
|
|
|
|
ifeq ($(CONFIG_ARCH_SDM845), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdm845autoconf.h
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDM670), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdm670autoconf.h
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdxpoorwillsautoconf.h
|
|
endif
|
|
|
|
obj-y += asoc/
|
|
obj-y += dsp/
|
|
obj-y += ipc/
|
|
obj-y += soc/
|