• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan PSL v2.
4# You may obtain a copy of Mulan PSL v2 at:
5#     http://license.coscl.org.cn/MulanPSL2
6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
8# PURPOSE.
9# See the Mulan PSL v2 for more details.
10DRIVER := ssa${TARG}.elf
11
12CFILES := $(wildcard src/*/*.c)
13
14include $(BUILD_CONFIG)/var.mk
15
16CPPFLAGS += -I$(TEELIB)/libswcrypto_engine/include
17CPPFLAGS += -I$(TEELIB)/libteeconfig/include/TEE_ext/
18CPPFLAGS += -I$(TEELIB)/libteeos/src/TEE/permission_service
19CPPFLAGS += -I$(TEELIB)/libteemem/include # mem_ops_ext.h
20CPPFLAGS += -I$(TEELIB)/libteeconfig/include
21CPPFLAGS += -I$(TEELIB)/libcrypto_hal/include
22CPPFLAGS += -I$(TEELIB)/libtee_shared/include
23CPPFLAGS += -I$(TEELIB)/libssa/src
24CPPFLAGS += -I$(TEELIB)/libssa/include
25CPPFLAGS += -I$(TEELIB)/libteeos/include/legacy
26CPPFLAGS += -I$(TEELIB)/libteeos/include/tee
27CPPFLAGS += -I$(TEELIB)/libpermission_service/include
28CPPFLAGS += -I$(TEELIB)/libteeos/src/tee
29CPPFLAGS += -I$(TEELIB)/libcrypto/include
30CPPFLAGS += -I$(TEELIB)/libhuk/include
31CPPFLAGS += -I$(SERVICES_PATH)/huk_service/src
32CPPFLAGS += -I$(SERVICES_PATH)/huk_service/include
33CPPFLAGS += -I$(SERVICES_PATH)/ssa/src/secure_storage_agent
34CPPFLAGS += -I$(SERVICES_PATH)/ssa/src
35CPPFLAGS += -I$(TOPDIR)/libs/libcrypto_common
36CPPFLAGS += -I$(TEELIB)/libteeagentcommon_client/include
37CPPFLAGS += -I$(TEELIB)/libipc_hal/include
38
39ifneq ($(findstring $(CONFIG_CRYPTO_SOFT_ENGINE), openssl openssl3),)
40CPPFLAGS += -I$(TEELIB)/libopenssl/openssl/include
41CPPFLAGS += -I$(TEELIB)/libopenssl/openssl/crypto
42endif
43
44CFLAGS += -fvisibility=hidden
45
46LDFLAGS += -z noexecstack
47
48ifeq (${CONFIG_TEE_TEST_UT},y)
49    CFLAGS += -DTEE_TEST_UT
50endif
51
52ifeq ($(TARGET_IS_ARM32),y)
53CFLAGS += -mno-thumb
54endif
55
56LDFLAGS += -e tee_task_entry
57
58SVC_PARTITIAL_LINK = y
59
60include $(BUILD_SERVICE)/svc-common.mk
61