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.
58 lines
2.1 KiB
58 lines
2.1 KiB
###############################################################################
|
|
# export variables
|
|
###############################################################################
|
|
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
|
|
#===============================================================================
|
|
# local variables
|
|
#===============================================================================
|
|
ifeq ($(CONFIG_SOCT_CHIP_TYPE), "reserved5")
|
|
chip_dir = reserved5
|
|
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved9" "reserved8"),)
|
|
chip_dir = reserved9
|
|
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13" "reserved6"),)
|
|
chip_dir = reserved9
|
|
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "reserved19_c"),)
|
|
chip_dir = reserved19_c
|
|
else ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "hi3751v811_c"),)
|
|
chip_dir = hi3751v811_c
|
|
else
|
|
chip_dir = reserved19
|
|
endif
|
|
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/generic
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/common
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/gpio
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/tvd
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/hddec
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/video
|
|
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/gpio
|
|
ccflags-y += -Idrivers/drv/ext_inc/hddec
|
|
ccflags-y += -Idrivers/drv/ext_inc/vfe
|
|
ccflags-y += -Idrivers/drv/common/include
|
|
ccflags-y += -Idrivers/drv/vfe
|
|
ccflags-y += -Idrivers/drv/vfe/hal/$(chip_dir)/
|
|
|
|
ccflags-y += -fstack-protector-all
|
|
ccflags-y += -Werror
|
|
ccflags-y += -DLOG_D_MODULE_ID=SOC_ID_VFE
|
|
MODNAME := soc_vfe
|
|
|
|
obj-$(CONFIG_SOCT_VFE_SUPPORT) += $(MODNAME).o
|
|
|
|
$(MODNAME)-objs-y += drv_vfe.o
|
|
$(MODNAME)-objs-y += drv_vfe_intf.o
|
|
$(MODNAME)-objs-y += drv_vfe_offline.o
|
|
$(MODNAME)-objs-y += drv_vfe_proc.o
|
|
$(MODNAME)-objs-y += drv_vfe_hal.o
|
|
$(MODNAME)-objs-y += drv_vfe_ssp.o
|
|
$(MODNAME)-objs-y += hal/$(chip_dir)/drv_vfe_platform.o
|
|
|
|
###############################################################################
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|