f99b53143d
Append error-correcting codes to verified partitions provided that PRODUCT_SUPPORTS_VERITY_FEC is true. This moves verity metadata to be after the hash tree, and requires matching changes from Ide48f581bbba77aed6132f77b309db71630d81ed Bug: 21893453 Change-Id: I6945cbab99e214566a1f9d3702333f2dbbc35816
33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2014 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.
|
|
#
|
|
|
|
# Provides dependencies necessary for verified boot (only for user and
|
|
# userdebug builds)
|
|
|
|
user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
|
|
ifneq (,$(user_variant))
|
|
PRODUCT_SUPPORTS_BOOT_SIGNER := true
|
|
PRODUCT_SUPPORTS_VERITY := true
|
|
PRODUCT_SUPPORTS_VERITY_FEC := true
|
|
|
|
# The dev key is used to sign boot and recovery images, and the verity
|
|
# metadata table. Actual product deliverables will be re-signed by hand.
|
|
# We expect this file to exist with the suffixes ".x509.pem" and ".pk8".
|
|
PRODUCT_VERITY_SIGNING_KEY := build/target/product/security/verity
|
|
|
|
PRODUCT_PACKAGES += \
|
|
verity_key
|
|
endif
|