1419b0af8Sopenharmony_ciKERNEL_DIR :=$(srctree)
2419b0af8Sopenharmony_ci
3419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/tzdriver
4419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/tzdriver/core
5419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/tzdriver/tlogger
6419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/bounds_checking_function/include
7419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/drivers/tzdriver/include
8419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/../../../../base/security/selinux/include
9419b0af8Sopenharmony_ciEXTRA_CFLAGS += -I$(KERNEL_DIR)/../../../../base/security/selinux
10419b0af8Sopenharmony_ci
11419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DSELINUX_CA_HIDL_LABEL=\"u:r:hal_libteec_default:s0\"
12419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DSELINUX_TEECD_LABEL=\"u:r:tee:s0\"
13419b0af8Sopenharmony_ciifneq ($(CONFIG_TZDRIVER_OHOS),y)
14419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DCONFIG_SELINUX_AUTH_ENABLE
15419b0af8Sopenharmony_ciendif
16419b0af8Sopenharmony_ciifeq ($(CONFIG_CADAEMON_AUTH),y)
17419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DCADAEMON_PATH_UID_AUTH_CTX=\"/system/bin/sa_main:6668\"
18419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DSELINUX_CADAEMON_LABEL=NULL
19419b0af8Sopenharmony_ciendif
20419b0af8Sopenharmony_ciifeq ($(CONFIG_TZDRIVER_OHOS),y)
21419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DTEECD_PATH_UID_AUTH_CTX=\"/vendor/bin/teecd:6668\"
22419b0af8Sopenharmony_cielse
23419b0af8Sopenharmony_ciEXTRA_CFLAGS += -DTEECD_PATH_UID_AUTH_CTX=\"/vendor/bin/teecd:0\"
24419b0af8Sopenharmony_ciendif
25419b0af8Sopenharmony_ci
26419b0af8Sopenharmony_ciobj-$(CONFIG_CLIENT_AUTH) += client_hash_auth.o
27419b0af8Sopenharmony_ci
28419b0af8Sopenharmony_ciifeq ($(findstring y, $(CONFIG_TEECD_AUTH) $(CONFIG_CLIENT_AUTH)), y)
29419b0af8Sopenharmony_ci	obj-y += auth_base_impl.o
30419b0af8Sopenharmony_ciendif
31