include $(LITEOSTOPDIR)/config.mk include $(DMCUDIR)/configs/common.mk MODULE_NAME := $(notdir $(shell pwd)) LITEOS_CFLAGS += -Werror LITEOS_CFLAGS += -Wno-unused-but-set-variable LITEOS_CFLAGS += -Wno-pointer-to-int-cast LITEOS_CFLAGS += -Wno-unused-function LITEOS_CFLAGS += -Wno-uninitialized LITEOS_CFLAGS += -Wno-error=shadow LITEOS_CFLAGS += -Wno-shift-count-overflow LITEOS_CFLAGS += -Wno-pointer-sign LITEOS_CFLAGS += -Wno-enum-compare LITEOS_CFLAGS += -Wno-discarded-qualifiers LITEOS_CFLAGS += -Wno-incompatible-pointer-types LITEOS_CFLAGS += -Wno-unused-variable LITEOS_CFLAGS += -Wno-missing-braces LITEOS_CFLAGS += -Wno-switch LITEOS_CFLAGS += -DCONFIG_SOCT_GFBG_DMCU_LITEOS_HAL LITEOS_CFLAGS += -DCONFIG_SOCT_GFBG_NOT_ARM_TEST $(warning CONFIG_SOCT_CHIP_TYPE $(CONFIG_SOCT_CHIP_TYPE)) $(warning CONFIG_SOCT_CHIP_REVERSION $(CONFIG_SOCT_CHIP_REVERSION)) ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5"),) CONFIG_RESERVED5=y endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13" "reserved9" "reserved6" "reserved8"),) CONFIG_RESERVED13=y endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved17" "reserved19"),) LITEOS_CFLAGS += -DCONFIG_SOCT_VO_RESERVED17_SUPPORT ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "c" "reserved19_c"),) LITEOS_CFLAGS += -DCONFIG_SOCT_VO_RESERVED17_C_SUPPORT endif endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "hi3751v811"),) LITEOS_CFLAGS += -DCONFIG_SOCT_VO_HI3751V811_SUPPORT ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "c" "hi3751v811_c"),) LITEOS_CFLAGS += -DCONFIG_SOCT_VO_HI3751V811_C_SUPPORT endif endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13" "reserved9" "reserved6" "reserved8"),) ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "reserved13_c" "reserved9_c" "reserved13_d" "reserved9_d" "reserved6_d" "reserved8_d"),) LITEOS_CFLAGS += -DSOCT_REG_REVISION_B endif endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9", "reserved6", "reserved8"),) LITEOS_CFLAGS += -DCONFIG_SOCT_GFX_RESERVED13 LITEOS_CFLAGS += -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/chip/reserved13 endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "c" "reserved19_c"),) LITEOS_CFLAGS += -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/chip/reserved19_c LITEOS_CFLAGS += -DCONFIG_SOCT_GFX_RESERVED19_C endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_REVERSION), "c" "hi3751v811_c"),) LITEOS_CFLAGS += -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/chip/hi3751v811_c LITEOS_CFLAGS += -DCONFIG_SOCT_GFX_HI3751V811_C endif LITEOS_CFLAGS += -I$(DRVDIR)/../include/generic \ -I$(DRVDIR)/../include/vo \ -I$(DRVDIR)/../include/video \ -I$(DRVDIR)/../include/common \ -I$(DRVDIR)/ioctl_inc/pq \ -I$(DRVDIR)/ioctl_inc/gfx2d \ -I$(DRVDIR)/ext_inc/xdp/vdp \ -I$(DRVDIR)/ext_inc/common \ -I$(DRVDIR)/ext_inc/pq \ -I$(DRVDIR)/ext_inc/memc \ -I$(DRVDIR)/ext_inc/gfbg \ -I$(DRVDIR)/ext_inc/vo \ -I$(DRVDIR)/ext_inc/tde \ -I$(OSALDIR)/include \ -I$(DRVDIR)/vo/include \ -I$(DRVDIR)/dmcu \ -I$(DRVDIR)/dmcu/ipcm \ -I$(DRVDIR)/common/include \ -I$(DRVDIR)/gfbg/include \ -I$(DRVDIR)/tde/include LITEOS_CFLAGS += -I$(DRVDIR)/gfbg/gfbg_v2_0/adapter \ -I$(DRVDIR)/gfbg/gfbg_v2_0/adapter/dmcu \ -I$(DRVDIR)/gfbg/gfbg_v2_0/com \ -I$(DRVDIR)/gfbg/gfbg_v2_0/src \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/adp \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/chip \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/com \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/intf \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/cbm \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/csc \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/dcmp \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/fdr \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gid \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gp \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/logic \ -I$(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/zme ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved23_drm"),) ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9", "reserved6", "reserved8"),) LOCAL_SRCS_y += $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/logic/hal_gfbg_ip_logic.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/logic/hal_gfbg_reg_logic.c endif ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9", "reserved6", "reserved8"),) LOCAL_SRCS_y += $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/zme/hal_gfbg_ip_zme.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/zme/hal_gfbg_reg_zme.c endif LOCAL_SRCS_y += $(DRVDIR)/gfbg/gfbg_v2_0/src/drv_gfbg_expt.c \ $(DRVDIR)/gfbg/gfbg_v2_0/adapter/gfbg_dmcu_adapter_process.c \ $(DRVDIR)/gfbg/gfbg_v2_0/adapter/dmcu/gfbg_dmcu_server.c \ $(DRVDIR)/gfbg/gfbg_v2_0/adapter/gfbg_dmcu_comm.c \ $(DRVDIR)/gfbg/gfbg_v2_0/hal/adp/hal_layer_adp.c \ $(DRVDIR)/gfbg/gfbg_v2_0/hal/intf/hal_cap_intf.c \ $(DRVDIR)/gfbg/gfbg_v2_0/hal/com/hal_gfbg_com.c \ $(DRVDIR)/gfbg/gfbg_v2_0/hal/intf/hal_dfx_intf.c \ $(DRVDIR)/gfbg/gfbg_v2_0/hal/intf/hal_layer_intf.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/cbm/hal_gfbg_ip_cbm.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/cbm/hal_gfbg_reg_cbm.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/csc/hal_gfbg_ip_csc.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/csc/hal_gfbg_reg_csc.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/dcmp/gfbg_alg_decmp.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/dcmp/hal_gfbg_ip_dcmp.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/dcmp/hal_gfbg_reg_dcmp.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/fdr/hal_gfbg_ip_fdr.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/fdr/hal_gfbg_reg_fdr.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gid/hal_gfbg_ip_gid.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gid/hal_gfbg_reg_gid.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gp/hal_gfbg_ip_gp.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/gp/hal_gfbg_reg_gp.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/zme/hal_gfbg_ip_sr.c\ $(DRVDIR)/gfbg/gfbg_v2_0/hal/ip/zme/hal_gfbg_reg_sr.c LOCAL_SRCS = $(LOCAL_SRCS_y) endif include $(MODULE)