• 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# Targets
12
13MODULE := libteeconfig$(TARG).a
14
15flags += -fno-builtin
16
17ifeq ($(CONFIG_TEE_MISC_DRIVER_64BIT), false)
18flags += -DCONFIG_TEE_MISC_DRIVER
19endif
20
21ifeq ($(CONFIG_TEE_MISC_DRIVER_64BIT), true)
22flags += -DCONFIG_TEE_MISC_DRIVER
23endif
24
25ifeq ($(CONFIG_SUPPORT_GET_DIEID), true)
26flags += -DCONFIG_SUPPORT_GET_DIEID
27endif
28
29ifeq ($(CONFIG_DYN_CONF), true)
30flags += -DTEE_SUPPORT_DYN_CONF
31endif
32
33ifneq (, $(filter $(TARGET_BOARD_PLATFORM), baltimore))
34flags += -DCONFIG_GENERIC_ROT
35flags += -DCONFIG_GENERIC_ART
36endif
37inc-flags += -I$(TEELIB)/libteeconfig/include/TEE_ext
38inc-flags += -I$(TEELIB)/libteeconfig/include/kernel/
39inc-flags += -I$(TEELIB)/libteeconfig/include
40inc-flags += -I$(TEELIB)/libagent_base/include
41inc-flags += -I$(TEELIB)/libdrv/include
42inc-flags += -I$(TEELIB)/libteeos/include/tee
43inc-flags += -I$(TEELIB)/libteeos/include/legacy
44inc-flags += -I$(DRIVERS_PATH)/include
45inc-flags += -I$(DRIVERS_PATH)/tee_misc_driver/src
46inc-flags += -I$(TEELIB)/libteemem/include
47
48# Source files required to build the target
49libteeconfig_c_files += $(wildcard src/drv_hal/*.c)
50libteeconfig_c_files += $(wildcard src/tee_config/*.c)
51
52include $(BUILD_LIB)/lib-common.mk
53include $(BUILD_CONFIG)/feature-macro.mk
54flags += -DTARGET_PRODUCT_VAL=\"$(TARGET_BOARD_PLATFORM)\"
55
56flags += $(TRUSTEDCORE_PLATFORM_FLAGS)
57