1419b0af8Sopenharmony_ciKERNEL_DIR :=$(srctree)
2419b0af8Sopenharmony_ci
3419b0af8Sopenharmony_ciifneq ($(TARGET_BUILD_VARIANT), user)
4419b0af8Sopenharmony_ci	ccflags-y += -DDEBUG_TUI
5419b0af8Sopenharmony_ciendif
6419b0af8Sopenharmony_ci
7419b0af8Sopenharmony_ciifeq ($(CONFIG_TZDRIVER_OHOS),y)
8419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DTUI_DAEMON_UID_IN_OH=6668
9419b0af8Sopenharmony_ciendif
10419b0af8Sopenharmony_ci
11419b0af8Sopenharmony_ciifeq ($(CONFIG_TEE_TUI_MTK), y)
12419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/tzdriver
13419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/tzdriver/core
14419b0af8Sopenharmony_ci
15419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/bounds_checking_function/include
16419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/gpu/drm/mediatek
17419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/misc/mediatek/memory-ssmr
18419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/devkit/lcdkit/lcdkit3.0/kernel/mtk/include
19419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/devkit/lcdkit/lcdkit3.0/kernel/common/include
20419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/devkit/lcdkit/lcdkit3.0/kernel/mtk/adapt
21419b0af8Sopenharmony_cielse
22419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/platform_drivers/tzdriver
23419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/platform_drivers/tzdriver/core
24419b0af8Sopenharmony_ci
25419b0af8Sopenharmony_ciifeq ($(CONFIG_TEE_TUI_DISPLAY_3_0), y)
26419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/dkmd/dksm
27419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/fbdev/dkmd/dksm
28419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/dkmd/dpu/begonia
29419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/fbdev/dkmd/dpu/begonia
30419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/dkmd/dpu/begonia/composer
31419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/fbdev/dkmd/dpu/begonia/composer
32419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/include/platform_include/display/dkmd
33419b0af8Sopenharmony_cielse
34419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/dkmd/dpu/azalea
35419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/video/fbdev/dkmd/dpu/azalea
36419b0af8Sopenharmony_ciendif
37419b0af8Sopenharmony_ci
38419b0af8Sopenharmony_ciendif
39419b0af8Sopenharmony_ci
40419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/platform_drivers/tzdriver/include
41419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/platform_drivers/tzdriver/ion
42419b0af8Sopenharmony_ciEXTRA_CFLAGS += -include internal_functions.h
43419b0af8Sopenharmony_ci
44419b0af8Sopenharmony_ciifeq ($(CONFIG_HW_SECMEM), y)
45419b0af8Sopenharmony_ciEXTRA_CFLAGS += -Idrivers/uni_drivers/secmem
46419b0af8Sopenharmony_ciendif
47419b0af8Sopenharmony_ci
48419b0af8Sopenharmony_ciobj-$(CONFIG_TEE_TUI) += tui.o