blob: 1e9305bb7464bf9af9f278c5501191e8faf7b076 [file] [log] [blame]
#
# Copyright (C) 2022 SHIFT GmbH
#
# SPDX-License-Identifier: Apache-2.0
#
### AVB
ifeq ($(WITH_GMS_MAINLINE),true)
PRIVATE_KEY_PATH := vendor/shiftos/private/keys/mainline/avb-4096.pem
else
PRIVATE_KEY_PATH := vendor/shiftos/private/keys/stock/avb-4096.pem
endif
# If private key does not exist, fallback to testkey
ifeq ($(wildcard $(PRIVATE_KEY_PATH)),)
PRIVATE_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem
endif
# AVB - vbmeta
BOARD_AVB_ALGORITHM := SHA256_RSA4096
BOARD_AVB_KEY_PATH := $(PRIVATE_KEY_PATH)
# AVB - vbmeta_system
BOARD_AVB_VBMETA_SYSTEM := system system_ext
BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := $(PRIVATE_KEY_PATH)
BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA4096
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 11
# AVB - vbmeta_vendor
BOARD_AVB_VBMETA_VENDOR := vendor
BOARD_AVB_VBMETA_VENDOR_KEY_PATH := $(PRIVATE_KEY_PATH)
BOARD_AVB_VBMETA_VENDOR_ALGORITHM := SHA256_RSA4096
BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX_LOCATION := 12
# AVB - clear any set flags
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS :=
#############################################################
# Kernel
ifeq ($(TARGET_BUILD_VARIANT),eng)
TARGET_KERNEL_CONFIG := axolotl_eng_defconfig
else
ifeq ($(TARGET_BUILD_VARIANT),userdebug)
TARGET_KERNEL_CONFIG := axolotl_userdebug_defconfig
else
TARGET_KERNEL_CONFIG := axolotl_user_defconfig
endif
endif
# Security patch level
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)