1# Copyright (C) 2022 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 16# Enable GKI 2.0 certification 17BOARD_GKI_SIGNING_KEY_PATH := build/make/target/product/gsi/testkey_rsa2048.pem 18BOARD_GKI_SIGNING_ALGORITHM := SHA256_RSA2048 19 20# Enable chained vbmeta for boot and init_boot images 21BOARD_AVB_ENABLE := true 22BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) 23 24BOARD_AVB_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem 25BOARD_AVB_BOOT_ALGORITHM := SHA256_RSA4096 26BOARD_AVB_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) 27BOARD_AVB_BOOT_ROLLBACK_INDEX_LOCATION := 2 28 29BOARD_AVB_INIT_BOOT_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem 30BOARD_AVB_INIT_BOOT_ALGORITHM := SHA256_RSA4096 31BOARD_AVB_INIT_BOOT_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) 32BOARD_AVB_INIT_BOOT_ROLLBACK_INDEX_LOCATION := 3 33 34# Sets boot SPL. 35BOOT_SECURITY_PATCH = $(PLATFORM_SECURITY_PATCH) 36 37# Boot image with kernel only (no ramdisk) 38BOARD_BOOT_HEADER_VERSION := 4 39BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) 40BOARD_USES_RECOVERY_AS_BOOT := 41TARGET_NO_KERNEL := false 42BOARD_USES_GENERIC_KERNEL_IMAGE := true 43BOARD_BUILD_GKI_BOOT_IMAGE_WITHOUT_RAMDISK ?= true 44 45# No system image 46BOARD_SYSTEMIMAGE_PARTITION_SIZE := 47 48# No vendor_boot 49BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := 50 51# No recovery 52BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := 53