#=============================================================================== # export variables #=============================================================================== ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),) ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS) endif TARGET := jpge ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9", "reserved6", "reserved8"),) HAL_DIR := hal_v1_0 endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5"),) HAL_DIR := hal_v2_0 endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "hi3751v811"),) HAL_DIR := hal_v2_0 EXTRA_CFLAGS += -DCONFIG_JPEG_SOCT_CHIP_HI3751V811 endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved19" "reserved17"),) HAL_DIR := hal_v2_0 EXTRA_CFLAGS += -DCONFIG_JPEG_SOCT_CHIP_RESERVED17 endif ccflags-y += -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-all #=============================================================================== # local variables #=============================================================================== ccflags-y += -Idrivers/drv/ioctl_inc/jpge \ -Idrivers/drv/ioctl_inc/generic \ -Idrivers/drv/ioctl_inc/common \ -Idrivers/drv/ioctl_inc/ssm \ -Idrivers/drv/ext_inc/base \ -Idrivers/drv/ext_inc/osal \ -Idrivers/drv/ext_inc/common \ -Idrivers/drv/ext_inc/ssm \ -Idrivers/drv/ext_inc/jpge \ -Idrivers/drv/common/include \ -Idrivers/drv/jpge/grc_cmm_inc \ -Idrivers/drv/$(TARGET)/$(HAL_DIR) \ -Idrivers/drv/jpge/inc \ -Idrivers/drv/jpge/hal \ -Idrivers/drv/ext_inc/dftevent \ -Idrivers/drv/jpge/err_report EXTRA_CFLAGS += -DCONFIG_GFX_MMU_SUPPORT EXTRA_CFLAGS += -DCONFIG_GFX_MMU_CLOCK EXTRA_CFLAGS += -DCONFIG_GFX_PROC_SUPPORT EXTRA_CFLAGS += -DCONFIG_GFX_DFX_MOD_JPGE EXTRA_CFLAGS += -DCONFIG_GFX_DFX_MINI EXTRA_CFLAGS += -DCONFIG_GFX_DFX_DEBUG EXTRA_CFLAGS += -DCONFIG_GFX_DFX_INFO EXTRA_CFLAGS += -DCONFIG_GFX_DFX_ERR EXTRA_CFLAGS += $(CFG_SOCT_KMOD_CFLAGS) MODNAME := soc_$(TARGET) ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y) obj-y += $(MODNAME).o else ifeq ($(CONFIG_SOCT_JPGE_SUPPORT),y) obj-m += $(MODNAME).o else obj-$(CONFIG_SOCT_JPGE_SUPPORT) += $(MODNAME).O endif endif $(MODNAME)-objs-y := src/drv_jpge_enc.o \ src/drv_jpge_handle.o \ src/drv_jpge_intf.o \ src/drv_jpge_ioctl.o \ hal/drv_jpge_hal.o \ err_report/drv_jpge_fault_report.o $(MODNAME)-objs := $($(MODNAME)-objs-y)