• 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
12MODULE := libtimer${TARG}.a
13
14flags += -fno-builtin
15
16inc-flags += -I$(TEELIB)/libtimer/include
17inc-flags += -I$(TEELIB)/libagent/include
18inc-flags += -I$(TEELIB)/libteeos/include/legacy
19inc-flags += -I$(TEELIB)/libteeos/include/tee
20inc-flags += -I$(TEELIB)/libssa/include
21inc-flags += -I$(PREBUILD_HEADER)/sys
22ifeq (${TARG}, _a32)
23inc-flags += -I$(TEELIB)/libtimer/include/arm
24else
25inc-flags += -I$(TEELIB)/libtimer/include/aarch64
26endif
27
28# Source files required to build the target
29ifeq ($(CONFIG_OFF_DRV_TIMER), y)
30libtimer_c_files := $(wildcard src/*.c)
31endif
32
33include $(BUILD_LIB)/lib-common.mk
34flags += $(TRUSTEDCORE_PLATFORM_FLAGS)
35flags += -DCONFIG_TEE_TIME_STUB
36