kernel_samsung_a34x-permissive/sound/soc/codecs/tfa98xx/Makefile

37 lines
935 B
Makefile
Raw Permalink Normal View History

# make sure that the environment variables ARCH and CROSS_COMPILE
# are set for your architecture and cross compiler
#
# e.g. for Beaglebone black:
# export ARCH := arm
# export CROSS_COMPILE := arm-linux-gnueabihf-
#
# e.g. Samsung Galaxy S6:
# export ARCH := arm64
# export CROSS_COMPILE := aarch64-linux-android-
#MODULE_NAME = snd-soc-tfa98xx
# additional debugging
#TFA_DEBUG=1
subdir-ccflags-y += -I$(srctree)/sound/soc/mediatek/common
# debugging support (also enables trace_printk)
ccflags-y += -Isound/soc/codecs/tfa98xx/inc
ccflags-y += -DDEBUG -DTFA_NON_DSP_SOLUTION
ccflags-y += -Werror
ccflags-y += $(call cc-option,-Wno-date-time,)
snd-soc-tfa98xx-objs += src/tfa98xx.o
snd-soc-tfa98xx-objs += src/tfa_container.o
snd-soc-tfa98xx-objs += src/tfa_dsp.o
snd-soc-tfa98xx-objs += src/tfa_init.o
ifdef TFA_DEBUG
ccflags-y += -DTFA_DEBUG -DDEBUG
snd-soc-tfa98xx-objs += src/tfa_debug.o
endif
obj-y += snd-soc-tfa98xx.o