c05564c4d8
Android 13
30 lines
1.1 KiB
Makefile
Executable file
30 lines
1.1 KiB
Makefile
Executable file
obj-y += adsp.o
|
|
adsp-y := adsp_helper.o adsp_excep.o adsp_excep.o adsp_ipi.o adsp_irq.o
|
|
adsp-y += adsp_logger.o adsp_service.o adsp_timesync.o
|
|
#adsp-y += adsp_timesync.o adsp_trace.o
|
|
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/audio_ipi/common_v1/framework
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/scp/$(CONFIG_MTK_PLATFORM)
|
|
ifeq ($(CONFIG_MACH_MT6781),y)
|
|
ADSP_PLATFORM := mt6781
|
|
else
|
|
ADSP_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
|
|
endif
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/adsp/$(ADSP_PLATFORM)
|
|
# include emi_mpu.h
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(ADSP_PLATFORM)/include/mach
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/emi/$(CONFIG_MTK_PLATFORM)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/include/spm
|
|
|
|
ifeq ($(CONFIG_MTK_ENG_BUILD),y)
|
|
CFLAGS_adsp_logger.o += -DDEBUG
|
|
CFLAGS_adsp_helper.o += -DDEBUG
|
|
CFLAGS_adsp_excep.o += -DDEBUG
|
|
CFLAGS_adsp_ipi.o += -DDEBUG
|
|
CFLAGS_adsp_irq.o += -DDEBUG
|
|
CFLAGS_adsp_dvfs.o += -DDEBUG
|
|
CFLAGS_adsp_clk.o += -DDEBUG
|
|
CFLAGS_adsp_service.o += -DDEBUG
|
|
CFLAGS_adsp_timesync.o += -DDEBUG
|
|
endif
|