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.
70 lines
2.3 KiB
70 lines
2.3 KiB
ifeq ($(CONFIG_SOCT_KMOD_CFLAGS),)
|
|
ccflags-y += $(CONFIG_SOCT_KMOD_CFLAGS)
|
|
endif
|
|
#===============================================================================
|
|
# local variables
|
|
#===============================================================================
|
|
TARGET := tde
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved13", "reserved9"),)
|
|
HAL_DIR := hal_v1_0
|
|
JPEG_HAL_DIR := hal_v1_0
|
|
EXTRA_CFLAGS += -DEXT_TDE_BUFFER=0x200000
|
|
endif
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved5"),)
|
|
HAL_DIR := hal_v2_0
|
|
JPEG_HAL_DIR := hal_v2_0
|
|
EXTRA_CFLAGS += -DEXT_TDE_BUFFER=0x80000
|
|
endif
|
|
|
|
ifneq ($(findstring $(CONFIG_SOCT_CHIP_TYPE), "reserved19" "reserved17" "hi3751v811"),)
|
|
HAL_DIR := hal_v3_0
|
|
JPEG_HAL_DIR := hal_v2_0
|
|
EXTRA_CFLAGS += -DEXT_TDE_BUFFER=0x80000
|
|
endif
|
|
|
|
EXTRA_CFLAGS += $(CFG_SOCT_KMOD_CFLAGS)
|
|
ccflags-y += -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-all
|
|
ccflags-y += -Idrivers/drv/ioctl_inc/generic \
|
|
-Idrivers/drv/ioctl_inc/tde \
|
|
-Idrivers/drv/ioctl_inc/common \
|
|
-Idrivers/drv/ioctl_inc/ssm \
|
|
-Idrivers/drv/ext_inc/base \
|
|
-Idrivers/drv/ext_inc/common \
|
|
-Idrivers/drv/ext_inc/osal \
|
|
-Idrivers/drv/ext_inc/tde \
|
|
-Idrivers/drv/ext_inc/ssm \
|
|
-Idrivers/drv/common/include \
|
|
-Idrivers/drv/tde/grc_cmm_inc \
|
|
-Idrivers/drv/tde/$(JPEG_HAL_DIR) \
|
|
-Idrivers/drv/tde/tde/include \
|
|
-Idrivers/drv/tde/tde \
|
|
-Idrivers/drv/tde/include \
|
|
-Idrivers/drv/tde/adp/$(HAL_DIR) \
|
|
-Idrivers/drv/tde/adp/inc \
|
|
-Idrivers/drv/ext_inc/dftevent \
|
|
-Idrivers/drv/tde/err_report
|
|
|
|
|
|
MODNAME := soc_$(TARGET)
|
|
|
|
ifeq ($(CONFIG_SOCT_DRV_BUILDIN),y)
|
|
obj-$(CONFIG_SOCT_TDE_SUPPORT) += $(MODNAME).o
|
|
else
|
|
obj-m += $(MODNAME).o
|
|
endif
|
|
|
|
$(MODNAME)-objs-y := src/drv_tde_osr.o \
|
|
src/tde_osr_k.o \
|
|
src/drv_tde_handle_k.o \
|
|
src/drv_tde_osilist_k.o \
|
|
src/drv_tde_proc_k.o \
|
|
src/drv_tde_wmalloc_k.o \
|
|
adp/$(HAL_DIR)/drv_tde_hal_k.o \
|
|
adp/src/drv_tde_osictl_k.o \
|
|
adp/src/tde_adp.o \
|
|
err_report/drv_tde_fault_report.o
|
|
|
|
$(MODNAME)-objs := $($(MODNAME)-objs-y)
|
|
|