############################################################################### # export variables ############################################################################### ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),) ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS) endif #=============================================================================== # local variables #=============================================================================== ccflags-y += -Idrivers/drv/ioctl_inc/generic ccflags-y += -Idrivers/drv/ioctl_inc/ssm ccflags-y += -Idrivers/drv/ioctl_inc/common ccflags-y += -Idrivers/drv/ioctl_inc/vi ccflags-y += -Idrivers/drv/ioctl_inc/video ccflags-y += -Idrivers/drv/ioctl_inc/pq ccflags-y += -Idrivers/drv/ioctl_inc/hdmirx ccflags-y += -Idrivers/drv/ioctl_inc/audio ccflags-y += -Idrivers/drv/ioctl_inc/stat ccflags-y += -Idrivers/drv/ext_inc/base ccflags-y += -Idrivers/drv/ext_inc/osal ccflags-y += -Idrivers/drv/ext_inc/common ccflags-y += -Idrivers/drv/ext_inc/ssm ccflags-y += -Idrivers/drv/ext_inc/vi ccflags-y += -Idrivers/drv/ext_inc/pq ccflags-y += -Idrivers/drv/ext_inc/hdmirx ccflags-y += -Idrivers/drv/ext_inc/stat ccflags-y += -Idrivers/drv/ext_inc/dftevent ccflags-y += -Idrivers/drv/common/include ccflags-y += -Idrivers/drv/vo/include ccflags-y += -Idrivers/drv/vi ccflags-y += -Idrivers/drv/vi/err_report ccflags-y += -Idrivers/drv/vi/hal ccflags-y += -Idrivers/drv/vi/hal/soc # for emei ifneq ($(CONFIG_SOCT_COMMON_KERNEL),y) ccflags-y += -Idrivers/drv/drm/pq/include endif ccflags-y += -DLOG_MODULE_ID=SOC_ID_VI #Add compile options for binscope ccflags-y += -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-all MODNAME := soc_vi ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y) obj-$(CONFIG_SOCT_VI_SUPPORT) += $(MODNAME).o else obj-m += $(MODNAME).o endif $(MODNAME)-objs-y += drv_vi_intf.o $(MODNAME)-objs-y += drv_vi_ctrl.o $(MODNAME)-objs-y += drv_vi_proc.o $(MODNAME)-objs-y += drv_vi_comm.o $(MODNAME)-objs-y += drv_vi_utils.o $(MODNAME)-objs-y += drv_vi_dsc.o $(MODNAME)-objs-y += drv_vi_buf.o $(MODNAME)-objs-y += drv_vi_uf.o $(MODNAME)-objs-y += drv_vi_hdr.o $(MODNAME)-objs-y += drv_vi_print.o $(MODNAME)-objs-y += err_report/drv_vi_fault_report.o ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5"),) $(MODNAME)-objs-y += hal/soc/reserved5/hal_vi_reg_cfg.o endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved17" "reserved19"),) $(MODNAME)-objs-y += hal/soc/reserved17/hal_vi_reg_cfg.o endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "hi3751v811"),) $(MODNAME)-objs-y += hal/soc/hi3751v811/hal_vi_reg_cfg.o endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13" "reserved9"),) $(MODNAME)-objs-y += hal/soc/reserved13/hal_vi_reg_cfg.o endif $(MODNAME)-objs-y += hal/hal_vi.o ############################################################################### $(MODNAME)-objs := $($(MODNAME)-objs-y)