
MODULE_NAME = eth

SRCDIR = src
SRCDIR += $(mcal_PATH)/Eth/src/cpsw
SRCDIR += $(mcal_PATH)/examples/Config
INCDIR += $(mcal_PATH)/include include src/hw
INCDIR += $(mcal_PATH)/include/hw $(mcal_PATH)/include/hw/$(SOCFAMILY)
INCDIR += $(mcal_PATH)/Eth/config
INCDIR += $(mcal_PATH)/Eth/src/cpsw/include


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

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

MODULE_SRC_BASE_PATH := $(mcal_PATH)/Eth

# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON += Eth.c Eth_Irq.c Eth_Priv.c Eth_PBcfg.c cpsw.c cpsw_ale.c cpsw_mdio.c cpsw_stats.c cpsw_cpts.c
PACKAGE_SRCS_COMMON = .
CFLAGS_LOCAL_COMMON = $(MCAL_CFLAGS)

# Core/SoC/platform specific source files and CFLAGS
# Example:
#   SRCS_<core/SoC/platform-name> =
#   CFLAGS_LOCAL_<core/SoC/platform-name> =

# 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
