1#
2# Copyright (c) 2018, Google, Inc. All rights reserved
3#
4# Permission is hereby granted, free of charge, to any person obtaining
5# a copy of this software and associated documentation files
6# (the "Software"), to deal in the Software without restriction,
7# including without limitation the rights to use, copy, modify, merge,
8# publish, distribute, sublicense, and/or sell copies of the Software,
9# and to permit persons to whom the Software is furnished to do so,
10# subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be
13# included in all copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22#
23
24TEST_RUNNER_DIR := $(GET_LOCAL_DIR)
25
26TRUSTY_TEST_RUNNER_SAVED_ARCH = $(ARCH)
27ifneq ($(strip $(TEST_RUNNER_ARCH)),)
28ARCH := $(TEST_RUNNER_ARCH)
29endif
30
31TRUSTY_APP_MEMBASE := 0x60000000
32
33# b/254541384, do not link with libclang_rt.builtins-arm-android.a
34TRUSTY_APP_LIBGCC :=
35TRUSTY_APP_LIBCOV :=
36
37$(eval $(call standard_name_for_arch,STANDARD_ARCH_NAME,$(ARCH),$(SUBARCH)))
38include arch/$(ARCH)/toolchain.mk
39
40# The lk module.mk file uses this variable to determine if it should add
41# kernel-specific flags to the build.
42USER_TASK_MODULE := true
43
44$(eval $(call trusty-build-rule,$(TEST_RUNNER_DIR)))
45
46TRUSTY_APP_MEMBASE :=
47
48ARCH := $(TRUSTY_TEST_RUNNER_SAVED_ARCH)
49TRUSTY_TEST_RUNNER_SAVED_ARCH :=
50USER_TASK_MODULE :=
51