• 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.
10
11# extra-flags is for export.txt and extern.txt of libteec_share
12ifeq ($(CONFIG_SSA_64BIT), true)
13flags += -DTEE_SUPPORT_SSA_64BIT
14endif
15ifeq ($(CONFIG_SSA_64BIT), false)
16flags += -DTEE_SUPPORT_SSA_32BIT
17endif
18
19ifdef CONFIG_PERMSRV_64BIT
20ifeq ($(CONFIG_PERMSRV_64BIT), true)
21flags += -DTEE_SUPPORT_PERM_64BIT
22else
23flags += -DTEE_SUPPORT_PERM_32BIT
24endif
25endif
26
27ifeq ($(CONFIG_PUBKEY_SHAREMEM), true)
28flags += -DCONFIG_PUBKEY_SHAREMEM
29endif
30
31ifeq ($(CONFIG_TA_LOCAL_SIGN), true)
32flags += -DTA_LOCAL_SIGN
33endif
34
35# keywest branch
36#flags += -DKEYWEST_SIGN_PUB_KEY
37#flags += -DTA_LOCAL_SIGN
38#keywest branch end
39
40ifeq ($(CONFIG_SE_SERVICE_64BIT), true)
41flags += -DTEE_SUPPORT_SE_SERVICE_64BIT
42endif
43ifeq ($(CONFIG_SE_SERVICE_32BIT), true)
44flags += -DTEE_SUPPORT_SE_SERVICE_32BIT
45endif
46
47ifeq ($(CONFIG_HUK_SERVICE_64BIT), true)
48flags += -DTEE_SUPPORT_HUK_SERVICE_64BIT
49endif
50
51ifeq ($(CONFIG_HUK_SERVICE_32BIT), true)
52flags += -DTEE_SUPPORT_HUK_SERVICE_32BIT
53endif
54
55ifeq ($(CONFIG_DRVMGR_64BIT), true)
56flags += -DTEE_SUPPORT_DRV_SERVER_64BIT
57endif
58
59ifeq ($(CONFIG_DRVMGR_64BIT), false)
60flags += -DTEE_SUPPORT_DRV_SERVER_32BIT
61endif
62