3ac95b53f4
This reverts commit 6924b25729
.
Reason for revert: with the following fix, this workaround is no longer needed.
https://android-review.googlesource.com/c/platform/build/+/762663
Bug: 112322265
Change-Id: I07363f6a5aa1697b6f7702343f3120e1049f07d8
Test: build sdk_gphone_x86_64-userdebug
71 lines
2.5 KiB
Makefile
71 lines
2.5 KiB
Makefile
#
|
|
# Copyright (C) 2017 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.
|
|
#
|
|
|
|
# Common boardconfig settings for generic AOSP products targetting mobile
|
|
# (phone/table) devices.
|
|
|
|
# VNDK
|
|
BOARD_VNDK_VERSION := current
|
|
|
|
# Properties
|
|
TARGET_SYSTEM_PROP := build/make/target/board/treble_system.prop
|
|
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
|
|
|
# Bootloader, kernel and recovery are not part of generic AOSP image
|
|
TARGET_NO_BOOTLOADER := true
|
|
TARGET_NO_KERNEL := true
|
|
|
|
# system.img is always ext4 with sparse option
|
|
# GSI also includes make_f2fs to support userdata parition in f2fs
|
|
# for some devices
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
|
|
|
|
# Enable dynamic system image size and reserved 64MB in it.
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
|
|
|
|
# Generic AOSP image always requires separate vendor.img
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
|
|
# Android generic system image always create metadata partition
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
# Generic AOSP image does NOT support HWC1
|
|
TARGET_USES_HWC2 := true
|
|
# Set emulator framebuffer display device buffer count to 3
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
|
|
# Audio
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
|
|
|
# Android Verified Boot (AVB):
|
|
# 1) Sets BOARD_AVB_ENABLE to sign the GSI image.
|
|
# 2) Sets AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED (--flag 2) in
|
|
# vbmeta.img to disable AVB verification.
|
|
#
|
|
# To disable AVB for GSI, use the vbmeta.img and the GSI together.
|
|
# To enable AVB for GSI, include the GSI public key into the device-specific
|
|
# vbmeta.img.
|
|
BOARD_AVB_ENABLE := true
|
|
BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flag 2
|
|
|
|
# Enable chain partition for system.
|
|
BOARD_AVB_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem
|
|
BOARD_AVB_SYSTEM_ALGORITHM := SHA256_RSA2048
|
|
BOARD_AVB_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
|
BOARD_AVB_SYSTEM_ROLLBACK_INDEX_LOCATION := 1
|