blob: 5a3a32090e17cccdf04ab976a2988bd169b098f0 [file] [log] [blame]
Michael Ryleev826c2d22016-02-18 12:50:08 -08001#
2# Copyright (C) 2016 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17#
18# This makefile should be included by devices that use Trusty TEE
19# to pull in the baseline set of Trusty specific modules.
20#
21
Matthew Maurerb0a8c952019-03-07 17:03:29 -080022# For gatekeeper, we include the generic -service and -impl to use legacy
23# HAL loading of gatekeeper.trusty.
24
David Drysdale719d4a82022-12-05 10:24:51 +000025# Allow the KeyMint HAL service implementation to be selected at build time. This needs to be
26# done in sync with the TA implementation included in Trusty. Possible values are:
27#
28# - Rust implementation: export TRUSTY_KEYMINT_IMPL=rust
29# - C++ implementation: (any other value of TRUSTY_KEYMINT_IMPL)
30
31ifeq ($(TRUSTY_KEYMINT_IMPL),rust)
32 LOCAL_KEYMINT_PRODUCT_PACKAGE := android.hardware.security.keymint-service.rust.trusty
33else
34 # Default to the C++ implementation
35 LOCAL_KEYMINT_PRODUCT_PACKAGE := android.hardware.security.keymint-service.trusty
36endif
37
Michael Ryleev826c2d22016-02-18 12:50:08 -080038PRODUCT_PACKAGES += \
David Drysdale719d4a82022-12-05 10:24:51 +000039 $(LOCAL_KEYMINT_PRODUCT_PACKAGE) \
David Drysdaled0149e82023-02-03 18:25:03 +000040 android.hardware.gatekeeper-service.trusty \
Inseob Kimed673492022-09-16 20:54:03 +090041 trusty_apploader \
42 RemoteProvisioner
Michael Ryleev826c2d22016-02-18 12:50:08 -080043
44PRODUCT_PROPERTY_OVERRIDES += \
Armelle Lainebd1dbe22021-07-19 16:14:10 +000045 ro.hardware.keystore_desede=true \
Michael Ryleev826c2d22016-02-18 12:50:08 -080046 ro.hardware.keystore=trusty \
47 ro.hardware.gatekeeper=trusty
Shawn Willdenb440e0c2021-10-29 09:44:01 -060048
49PRODUCT_COPY_FILES += \
50 frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml