kernel_samsung_a34x-permissive/drivers/misc/mediatek/adsp/common_v2/Makefile

22 lines
624 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
ifeq ($(CONFIG_MACH_MT6781),y)
ADSP_PLATFORM := mt6781
else
ADSP_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
endif
obj-y += adsp.o
adsp-y := adsp_core.o adsp_fs.o adsp_semaphore.o adsp_logger.o adsp_feature_table.o adsp_timesync.o
ccflags-y += -I$(srctree)/drivers/misc/mediatek/audio_ipi/common_v2/framework
ccflags-y += -I$(srctree)/drivers/misc/mediatek/adsp/$(ADSP_PLATFORM)
ifeq ($(CONFIG_MTK_ENG_BUILD),y)
CFLAGS_adsp_core.o += -DDEBUG
CFLAGS_adsp_fs.o += -DDEBUG
CFLAGS_adsp_logger.o += -DDEBUG
CFLAGS_adsp_semaphore.o += -DDEBUG
CFLAGS_adsp_feature_table.o += -DDEBUG
endif