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.

48 lines
1.6 KiB

###############################################################################
# export variables
###############################################################################
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
endif
###############################################################################
# local variables
###############################################################################
## header search path
ccflags-y += -Idrivers/drv/include \
-Idrivers/drv/ioctl_inc/generic \
-Idrivers/drv/ioctl_inc/common \
-Idrivers/drv/ioctl_inc/tsio \
-Idrivers/drv/ioctl_inc/demux \
-Idrivers/drv/ext_inc/base \
-Idrivers/drv/ext_inc/osal \
-Idrivers/drv/ext_inc/tsio \
-Idrivers/drv/ext_inc/common \
-Idrivers/drv/ext_inc/demux \
-Idrivers/drv/common/include
ifdef CFG_SOCT_TSIO_LOOPBACK_SUPPORT
ccflags-y += -DTSIO_PHY_LOOPBACK_SUPPORT
endif
ccflags-y += -fstack-protector-all
ccflags-y += -Werror
MOD_NAME := soc_tsio
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
obj-y += $(MOD_NAME).o
else
obj-m += $(MOD_NAME).o
endif
ccflags-y += -DLOG_MODULE_ID=SOC_ID_TSIO
$(MOD_NAME)-objs-y += drv_tsio_intf.o
$(MOD_NAME)-objs-y += drv_tsio.o
$(MOD_NAME)-objs-y += drv_tsio_func.o
$(MOD_NAME)-objs-y += drv_tsio_utils.o
$(MOD_NAME)-objs-y += hal_tsio.o
###############################################################################
# rules
###############################################################################
$(MOD_NAME)-objs := $($(MOD_NAME)-objs-y)