1# Copyright (C) 2021 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 signing.
17BOARD_GKI_SIGNING_KEY_PATH := build/make/target/product/gsi/testkey_rsa2048.pem
18BOARD_GKI_SIGNING_ALGORITHM := SHA256_RSA2048
19
20# The following is needed to allow release signing process appends more extra
21# args, e.g., passing --signing_helper_with_files from mkbootimg to avbtool.
22# See b/178559811 for more details.
23BOARD_GKI_SIGNING_SIGNATURE_ARGS := --prop foo:bar
24
25# Sets boot SPL.
26BOOT_SECURITY_PATCH = $(PLATFORM_SECURITY_PATCH)
27
28# Boot image with ramdisk and kernel
29BOARD_RAMDISK_USE_LZ4 := true
30BOARD_BOOT_HEADER_VERSION := 4
31BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
32BOARD_USES_RECOVERY_AS_BOOT :=
33TARGET_NO_KERNEL := false
34BOARD_USES_GENERIC_KERNEL_IMAGE := true
35BOARD_KERNEL_MODULE_INTERFACE_VERSIONS := \
36    5.4-android12-unstable \
37    5.10-android12-unstable \
38
39# Copy boot image in $OUT to target files. This is defined for targets where
40# the installed GKI APEXes are built from source.
41BOARD_COPY_BOOT_IMAGE_TO_TARGET_FILES := true
42
43# No vendor_boot
44BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT :=
45
46# No recovery
47BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE :=
48