2016-02-18 21:50:08 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 The Android Open-Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# This makefile should be included by devices that use Trusty TEE
|
|
|
|
# to pull in the baseline set of Trusty specific modules.
|
|
|
|
#
|
|
|
|
|
2019-03-08 02:03:29 +01:00
|
|
|
# For gatekeeper, we include the generic -service and -impl to use legacy
|
|
|
|
# HAL loading of gatekeeper.trusty.
|
|
|
|
|
2022-12-05 11:24:51 +01:00
|
|
|
# Allow the KeyMint HAL service implementation to be selected at build time. This needs to be
|
|
|
|
# done in sync with the TA implementation included in Trusty. Possible values are:
|
|
|
|
#
|
|
|
|
# - Rust implementation: export TRUSTY_KEYMINT_IMPL=rust
|
|
|
|
# - C++ implementation: (any other value of TRUSTY_KEYMINT_IMPL)
|
|
|
|
|
|
|
|
ifeq ($(TRUSTY_KEYMINT_IMPL),rust)
|
|
|
|
LOCAL_KEYMINT_PRODUCT_PACKAGE := android.hardware.security.keymint-service.rust.trusty
|
|
|
|
else
|
|
|
|
# Default to the C++ implementation
|
|
|
|
LOCAL_KEYMINT_PRODUCT_PACKAGE := android.hardware.security.keymint-service.trusty
|
|
|
|
endif
|
|
|
|
|
2024-01-30 17:46:45 +01:00
|
|
|
ifeq ($(SECRETKEEPER_ENABLED),true)
|
2023-11-10 20:12:18 +01:00
|
|
|
LOCAL_SECRETKEEPER_PRODUCT_PACKAGE := android.hardware.security.secretkeeper.trusty
|
2024-01-30 17:46:45 +01:00
|
|
|
else
|
|
|
|
LOCAL_SECRETKEEPER_PRODUCT_PACKAGE :=
|
2023-11-10 20:12:18 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-18 21:50:08 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
2022-12-05 11:24:51 +01:00
|
|
|
$(LOCAL_KEYMINT_PRODUCT_PACKAGE) \
|
2023-11-10 20:12:18 +01:00
|
|
|
$(LOCAL_SECRETKEEPER_PRODUCT_PACKAGE) \
|
2023-02-03 19:25:03 +01:00
|
|
|
android.hardware.gatekeeper-service.trusty \
|
2022-09-16 13:54:03 +02:00
|
|
|
trusty_apploader \
|
2016-02-18 21:50:08 +01:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2021-07-19 18:14:10 +02:00
|
|
|
ro.hardware.keystore_desede=true \
|
2016-02-18 21:50:08 +01:00
|
|
|
ro.hardware.keystore=trusty \
|
|
|
|
ro.hardware.gatekeeper=trusty
|
2021-10-29 17:44:01 +02:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
|