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.
124 lines
5.6 KiB
124 lines
5.6 KiB
###############################################################################
|
|
# export variables
|
|
###############################################################################
|
|
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
###############################################################################
|
|
# local variables
|
|
###############################################################################
|
|
|
|
dmx_path := drivers/drv/demux
|
|
|
|
## header search path
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/generic
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/common
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/keyslot
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/demux
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/klad
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/avplay
|
|
ccflags-y += -Idrivers/drv/ext_inc/base
|
|
ccflags-y += -Idrivers/drv/ext_inc/common
|
|
ccflags-y += -Idrivers/drv/ext_inc/osal
|
|
ccflags-y += -Idrivers/drv/ext_inc/keyslot
|
|
ccflags-y += -Idrivers/drv/ext_inc/demux
|
|
ccflags-y += -Idrivers/drv/ext_inc/klad
|
|
ccflags-y += -Idrivers/drv/ext_inc/avplay
|
|
ccflags-y += -Idrivers/drv/common/include
|
|
ccflags-y += -I$(dmx_path)
|
|
ccflags-$(CONFIG_SOCT_TEE_SUPPORT) += -Iinclude/linux/huanglong/tee
|
|
ccflags-y += -fstack-protector-all
|
|
ccflags-y += -Werror
|
|
ccflags-y += -Wno-vla
|
|
ccflags-y += $(call cc-option,-Wno-error=zero-length-bounds)
|
|
|
|
MODNAME := soc_demux
|
|
ccflags-y += -DLOG_MODULE_ID=SOC_ID_DEMUX
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
obj-$(CONFIG_SOCT_DEMUX_SUPPORT) += $(MODNAME).o
|
|
else
|
|
obj-m += $(MODNAME).o
|
|
endif
|
|
|
|
#############################DEMUX COMMON####################################
|
|
$(MODNAME)-objs-y += drv_demux.o \
|
|
drv_demux_intf.o \
|
|
drv_demux_utils.o
|
|
#############################COMMON END######################################
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5" "reserved19" "reserved17"), )
|
|
#############################DEMUX V2########################################
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved19" "reserved17"), )
|
|
dmx_platform_path := reserved17
|
|
else
|
|
dmx_platform_path := reserved5
|
|
endif
|
|
ccflags-y += -I$(dmx_path)/demux_v2/
|
|
ccflags-y += -I$(dmx_path)/demux_v2/hal
|
|
ccflags-y += -I$(dmx_path)/demux_v2/hal/platform/$(dmx_platform_path)
|
|
$(MODNAME)-objs-y += demux_v2/drv_demux_func.o \
|
|
demux_v2/hal/hal_demux_queue.o \
|
|
demux_v2/hal/hal_demux_dvbport.o \
|
|
demux_v2/hal/hal_demux_filter.o \
|
|
demux_v2/hal/hal_demux_channel.o \
|
|
demux_v2/hal/hal_demux_ipport.o \
|
|
demux_v2/hal/hal_demux_interrupt.o \
|
|
demux_v2/hal/hal_demux_scd.o \
|
|
demux_v2/drv_demux_pcr.o \
|
|
demux_v2/drv_demux_common.o \
|
|
demux_v2/drv_demux_port.o \
|
|
demux_v2/drv_demux_subdev.o \
|
|
demux_v2/drv_demux_channel.o \
|
|
demux_v2/drv_demux_filter.o \
|
|
demux_v2/drv_demux_rec.o \
|
|
demux_v2/drv_demux_queue.o \
|
|
demux_v2/drv_demux_proc.o \
|
|
demux_v2/drv_demux_adp.o \
|
|
demux_v2/hal/platform/$(dmx_platform_path)/hal_dmx_platform.o
|
|
|
|
#############################V2 END##########################################
|
|
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "hi3751v811"), )
|
|
dmx_platform_path := hi3751v811
|
|
ccflags-y += -I$(dmx_path)/demux_v2/
|
|
ccflags-y += -I$(dmx_path)/demux_v2/hal
|
|
ccflags-y += -I$(dmx_path)/demux_v2/hal/platform/$(dmx_platform_path)
|
|
$(MODNAME)-objs-y += demux_v2/drv_demux_func.o \
|
|
demux_v2/hal/hal_demux_queue.o \
|
|
demux_v2/hal/hal_demux_dvbport.o \
|
|
demux_v2/hal/hal_demux_filter.o \
|
|
demux_v2/hal/hal_demux_channel.o \
|
|
demux_v2/hal/hal_demux_ipport.o \
|
|
demux_v2/hal/hal_demux_interrupt.o \
|
|
demux_v2/hal/hal_demux_scd.o \
|
|
demux_v2/drv_demux_pcr.o \
|
|
demux_v2/drv_demux_common.o \
|
|
demux_v2/drv_demux_port.o \
|
|
demux_v2/drv_demux_subdev.o \
|
|
demux_v2/drv_demux_channel.o \
|
|
demux_v2/drv_demux_filter.o \
|
|
demux_v2/drv_demux_rec.o \
|
|
demux_v2/drv_demux_queue.o \
|
|
demux_v2/drv_demux_proc.o \
|
|
demux_v2/drv_demux_adp.o \
|
|
demux_v2/hal/platform/$(dmx_platform_path)/hal_dmx_platform.o
|
|
|
|
else
|
|
#############################DEMUX V3########################################
|
|
ccflags-y += -I$(dmx_path)/demux_v3/
|
|
$(MODNAME)-objs-y += demux_v3/drv_demux_dscfct.o \
|
|
demux_v3/drv_demux_func.o \
|
|
demux_v3/drv_demux_index.o \
|
|
demux_v3/drv_demux_plyfct.o \
|
|
demux_v3/drv_demux_recfct.o \
|
|
demux_v3/drv_demux_rmxfct.o \
|
|
demux_v3/drv_demux_scd.o \
|
|
demux_v3/drv_demux_hal.o \
|
|
demux_v3/drv_demux_proc.o \
|
|
demux_v3/drv_demux_adp.o
|
|
$(MODNAME)-objs-$(CONFIG_SOCT_TEE_SUPPORT) += demux_v3/drv_demux_tee.o
|
|
#############################V3 END##########################################
|
|
endif
|
|
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|