• 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# DRIVER is a driver
12
13DRIVER := tarunner${TARG}.elf
14
15include $(BUILD_CONFIG)/var.mk
16
17tarunner_c_files := $(wildcard src/*.c)
18
19# Libraries
20LIBS := c_shared$(TARG) tee_shared$(TARG)
21
22inc-flags += -I$(SYSLIB)/libspawn_common/include/
23inc-flags += -I$(DRVLIB)/libdrv_shared/src/
24inc-flags += -I$(TEELIB)/libteeconfig/include/
25inc-flags += -I$(TEELIB)/libagent_base/include/
26inc-flags += -I$(TEELIB)/libteeos/include/tee
27inc-flags += -I$(TEELIB)/libteeos/include/legacy
28inc-flags += -I$(TEELIB)/libteeos/include
29inc-flags += -I$(TEELIB)/libipc_hal/include
30inc-flags += -I$(DRIVERS_PATH)/include
31inc-flags += -I$(TEELIB)/libteemem/include
32inc-flags += -I$(PREBUILD_HEADER)/sys
33inc-flags += -I$(FRAMEWORK_PATH)/gtask/src/framework
34
35LIBS += ipc_hal${TARG}
36
37# drv makefile will fully link a binary.
38include $(BUILD_SERVICE)/svc-common.mk
39tarunner_LDFLAGS += -z text -z noexecstack --dynamic-linker=libc_shared${TARG}.so -e main
40