
MODULE_NAME = spi

SRCDIR = src $(mcal_PATH) $(mcal_PATH)/Spi/mcspi_hw/V0
INCDIR += src $(mcal_PATH) $(mcal_PATH)/Spi/mcspi_hw/V0
#SRCDIR =  $(mcal_PATH)/ti/drv/udma
#INCDIR += src  $(mcal_PATH)/ti

INCDIR += src $(mcal_PATH)
INCDIR += src $(mcal_PATH)/include/hw

#SRCDIR = src
#SRCDIR = src $(mcal_PATH) $(mcal_PATH)/Spi/mcspi_hw/V0
#INCDIR += src $(mcal_PATH) 


#INCDIR += src $(mcal_PATH) $(mcal_PATH)/include/hw
#INCDIR += $(mcal_PATH)/include $(mcal_PATH)/include/hw/$(SOCFAMILY) \
 #        $(mcal_PATH)/include/hw include src/hw


# List all the external components/interfaces, whose interface header files
# need to be included for this component
INCLUDE_EXTERNAL_INTERFACES = autoSARBSW autosarConfig

# List all the internal submodules whose interface header files
# need to be included for this module
INCLUDE_INTERNAL_INTERFACES = spi

MODULE_SRC_BASE_PATH := $(mcal_PATH)/Spi

# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON += Spi.c Spi_Priv.c Spi_Utils.c Spi_Irq.c Spi_Mcspi.c Spi_Dma.c
ifeq ($(SOC),$(filter $(SOC), AM263))
SRCS_COMMON += mcspi.c
else
#other Soc requirements
endif
PACKAGE_SRCS_COMMON = .
CFLAGS_LOCAL_COMMON = $(MCAL_CFLAGS)


# Include common make files
ifeq ($(MAKERULEDIR), )
#Makerule path not defined, define this and assume relative path from ROOTDIR
  MAKERULEDIR := $(ROOTDIR)/build/makerules
  export MAKERULEDIR
endif
include $(MAKERULEDIR)/common.mk

# OBJs and libraries are built by using rule defined in rules_<target>.mk
#     and need not be explicitly specified here

# Nothing beyond this point
