# 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