############################################################################### ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),) ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS) endif ############################################################################### ccflags-y += \ -Idrivers/drv/ioctl_inc/generic \ -Idrivers/drv/ioctl_inc/common \ -Idrivers/drv/ioctl_inc/gpio \ -Idrivers/drv/ioctl_inc/i2c \ -Idrivers/drv/ioctl_inc/amp \ -Idrivers/drv/ioctl_inc/audio \ -Idrivers/drv/ext_inc/base \ -Idrivers/drv/ext_inc/osal \ -Idrivers/drv/ext_inc/common \ -Idrivers/drv/ext_inc/gpio \ -Idrivers/drv/ext_inc/i2c \ -Idrivers/drv/ext_inc/amp \ -Idrivers/drv/common/include \ -Idrivers/drv/amp/drv_amp_dev \ -Idrivers/drv/amp ############################################################################### amp_path := drivers/drv/amp MODNAME := soc_amp ############################################################################### ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y) obj-y += $(MODNAME).o else obj-m += $(MODNAME).o endif ############################################################################### $(MODNAME)-objs-y := \ drv_amp_intf.o \ drv_amp_source.o \ drv_amp.o \ drv_amp_platform.o \ drv_amp_device.o \ drv_amp_proc.o ############################################################################### ccflags-y += -I$(amp_path)/fault_check ccflags-y += -Idrivers/drv/ext_inc/dftevent $(MODNAME)-objs-y += \ fault_check/drv_amp_fault_check.o ############################################################################### include $(amp_path)/osal/osal.mak include $(amp_path)/drv_amp_dev/customer.mak ############################################################################### $(MODNAME)-objs := $($(MODNAME)-objs-y)