• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2025 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16WITH_FAKE_HWRNG ?= false
17WITH_FAKE_HWKEY ?= false
18WITH_FAKE_KEYBOX ?= false
19
20include project/generic-x86_64-inc.mk
21
22#
23# overwrite list of TAs
24#
25
26# the test-vm does not include any TAs by default
27# (except for the test TAs that are included by virt-test-inc.mk)
28#
29# tests in Trusty are mostly declared as TRUSTY_LOADABLE_USER_TESTS,
30# they also are included by default as builtin apps
31# (unless the top-level makefile initializes TRUSTY_BUILTIN_USER_TESTS,
32#  see documentation in trusty/kernel/app/trusty/user-tasks.mk)
33#
34# for virt payload, loadable TAs are generally not applicable
35# (apploader interface is not a stable ABI yet).
36# So apploader should generally be disabled.
37#
38# the Trusty build system however makes it complicated to disable
39# apploader service while still declaring tests as loadable.
40# as a short-term workaround, the test-vm will include apploader service
41# TODO(b/) evolve `trusty/kernel/app/trusty/user-tasks.mk` to support
42# disabling apploader service and rebalancing loadable test as builtin tests
43TRUSTY_BUILTIN_USER_TASKS := \
44	trusty/user/base/app/apploader \
45
46ifeq (true,$(call TOBOOL,$(USER_COVERAGE_ENABLED)))
47TRUSTY_ALL_USER_TASKS += \
48	trusty/user/base/app/coverage \
49
50endif
51
52ifeq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED)))
53TRUSTY_ALL_USER_TASKS += \
54	trusty/user/base/app/line-coverage \
55
56endif
57