# Copyright (C) 2014-2015 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. #
# Set to true to fallback to soft_attestation_cert if not provisioned. # Note that KeyMint1 does not mandate factory provisioning, so the SW # fallback is a perfectly-legitimate state. KeyMint2 will disallow # factory provisioning and SW fallback will become irrelevant.
KEYMASTER_SOFT_ATTESTATION_FALLBACK ?= true ifeq (true,$(call TOBOOL,$(KEYMASTER_SOFT_ATTESTATION_FALLBACK)))
MODULE_SRCS += \
$(KEYMASTER_ROOT)/contexts/soft_attestation_cert.cpp \
# # Defining KEYMASTER_DEBUG will allow configure() to succeed without root of # trust from bootloader. # ifeq (true,$(call TOBOOL,$(KEYMASTER_DEBUG)))
MODULE_COMPILEFLAGS += -DKEYMASTER_DEBUG endif
# Add support for nanopb tag numbers > 255 and fields larger than 255 bytes or # 255 array entries.
MODULE_COMPILEFLAGS += -DPB_FIELD_16BIT # STATIC_ASSERT in pb.h might conflict with STATIC_ASSEET in compiler.h
MODULE_COMPILEFLAGS += -DPB_NO_STATIC_ASSERT
# Builds that don't support TP set SECURE_STORAGE_USE_TDP to tell apps that # don't have a strong reason to use TP to use TDP for secure storage instead of # TP. ifeq (true,$(call TOBOOL,$(SECURE_STORAGE_USE_TDP)))
KEYMASTER_STORAGE_PORT ?= STORAGE_CLIENT_TDP_PORT else
KEYMASTER_STORAGE_PORT ?= STORAGE_CLIENT_TP_PORT endif
MODULE_DEFINES += KEYMASTER_STORAGE_PORT=$(KEYMASTER_STORAGE_PORT)
# If KEYMASTER_WITH_HWWSK_SUPPORT is set Keymaster will be # compiled with Hardware Wrapped Storage key support ifeq (true,$(call TOBOOL,$(KEYMASTER_WITH_HWWSK_SUPPORT)))
MODULE_DEFINES += \
WITH_HWWSK_SUPPORT=1 \
endif
# If KEYMASTER_WITH_FINGERPRINT_SUPPORT is set Keymaster will be # compiled with fingerprint authenticator support. ifeq (true,$(call TOBOOL,$(KEYMASTER_WITH_FINGERPRINT_SUPPORT)))
MODULE_DEFINES += \
TEE_FINGERPRINT_AUTH_SUPPORTED=1 \
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.