You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
endif
ccflags-y += -Idrivers/drv/ext_inc/base
ccflags-y += -Idrivers/drv/ext_inc/common
ccflags-y += -Idrivers/drv/ext_inc/common/reserved13_c
ccflags-y += -Idrivers/drv/ext_inc/osal
ccflags-y += -Idrivers/drv/ext_inc/asr
ccflags-y += -Idrivers/drv/ioctl_inc/generic
ccflags-y += -Idrivers/drv/ioctl_inc/audio
ccflags-y += -Idrivers/drv/ioctl_inc/common
#Add compile options for binscope
ccflags-y += -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-all
ASR_BIN_PATH := \"ai_firmware_elf.bin\"
ASR_OVERLAY_PATH := \"ai_firmware_overlay.bin\"
ccflags-y += -DASR_OVERLAY_PATH=$(ASR_OVERLAY_PATH)
ccflags-y += -DASR_BIN_PATH=$(ASR_BIN_PATH)
MODNAME := soc_asr
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
obj-y += $(MODNAME).o
else
obj-m += $(MODNAME).o
endif
$(MODNAME)-objs-y += drv_asr.o
$(MODNAME)-objs-y += drv_asr_intf.o
$(MODNAME)-objs-y += drv_asr_vmin.o
$(MODNAME)-objs-y += drv_asr_elf.o
$(MODNAME)-objs-y += drv_asr_debug.o
$(MODNAME)-objs := $($(MODNAME)-objs-y)