#=============================================================================== # export variables #=============================================================================== ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),) ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS) endif ccflags-y += -Idrivers/drv/common/include \ -Idrivers/drv/ioctl_inc/generic \ -Idrivers/drv/ioctl_inc/common \ -Idrivers/drv/ioctl_inc/spi \ -Idrivers/drv/ext_inc/base \ -Idrivers/drv/ext_inc/osal \ -Idrivers/drv/ext_inc/common \ -Idrivers/drv/ext_inc/spi \ -Idrivers/spi ccflags-y += -DLOG_MODULE_ID=SOC_ID_SPI MODNAME := soc_spi ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y) obj-y += $(MODNAME).o else obj-m += $(MODNAME).o endif $(MODNAME)-objs-y := drv_spi.o \ drv_spi_intf.o $(MODNAME)-objs := $($(MODNAME)-objs-y)