Alexander Martinz | e925b6f | 2022-04-08 08:52:53 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2022 SHIFT GmbH |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
Alexander Martinz | cc0b720 | 2022-05-31 10:20:59 +0200 | [diff] [blame] | 7 | ### AVB |
| 8 | |
| 9 | ifeq ($(WITH_GMS_MAINLINE),true) |
| 10 | PRIVATE_KEY_PATH := vendor/shiftos/private/keys/mainline/avb-4096.pem |
| 11 | else |
| 12 | PRIVATE_KEY_PATH := vendor/shiftos/private/keys/stock/avb-4096.pem |
| 13 | endif |
| 14 | |
| 15 | # If private key does not exist, fallback to testkey |
| 16 | ifeq ($(wildcard $(PRIVATE_KEY_PATH)),) |
| 17 | PRIVATE_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem |
| 18 | endif |
| 19 | |
| 20 | # AVB - vbmeta |
| 21 | BOARD_AVB_ALGORITHM := SHA256_RSA4096 |
| 22 | BOARD_AVB_KEY_PATH := $(PRIVATE_KEY_PATH) |
| 23 | |
| 24 | # AVB - vbmeta_system |
| 25 | BOARD_AVB_VBMETA_SYSTEM := system system_ext |
| 26 | BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := $(PRIVATE_KEY_PATH) |
| 27 | BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA4096 |
| 28 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 29 | BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 11 |
| 30 | |
| 31 | # AVB - vbmeta_vendor |
| 32 | BOARD_AVB_VBMETA_VENDOR := vendor |
| 33 | BOARD_AVB_VBMETA_VENDOR_KEY_PATH := $(PRIVATE_KEY_PATH) |
| 34 | BOARD_AVB_VBMETA_VENDOR_ALGORITHM := SHA256_RSA4096 |
| 35 | BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
| 36 | BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX_LOCATION := 12 |
| 37 | |
| 38 | # AVB - clear any set flags |
| 39 | BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS := |
| 40 | |
| 41 | ############################################################# |
| 42 | |
Alexander Martinz | b6fc418 | 2022-12-22 00:04:56 +0100 | [diff] [blame] | 43 | # DRM |
| 44 | TARGET_ENABLE_MEDIADRM_64 := true |
| 45 | |
Alexander Martinz | 97f727f | 2022-04-08 10:01:35 +0200 | [diff] [blame] | 46 | # Kernel |
Alexander Martinz | e925b6f | 2022-04-08 08:52:53 +0200 | [diff] [blame] | 47 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 48 | TARGET_KERNEL_CONFIG := axolotl_eng_defconfig |
| 49 | else |
| 50 | ifeq ($(TARGET_BUILD_VARIANT),userdebug) |
| 51 | TARGET_KERNEL_CONFIG := axolotl_userdebug_defconfig |
| 52 | else |
| 53 | TARGET_KERNEL_CONFIG := axolotl_user_defconfig |
| 54 | endif |
| 55 | endif |
Alexander Martinz | b801a9b | 2022-06-01 09:39:48 +0200 | [diff] [blame] | 56 | |
| 57 | # Security patch level |
| 58 | VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) |