5d356e2397
Add BOARD_USES_METADATA_PARTITION to GSI to enable metadata folder under the root folder. Bug: 80407843 Bug: 79781913 Test: Boot on a Pixel device with GSI applied the patch Change-Id: I5544b76b54300aa5a87aa4fa3c0ec6feff13a554
61 lines
2 KiB
Makefile
61 lines
2 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
|
|
TARGET_USES_MKE2FS := true
|
|
|
|
# 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):
|
|
# Builds a special vbmeta.img that disables AVB verification.
|
|
# Otherwise, AVB will prevent the device from booting the generic system.img.
|
|
# Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity
|
|
# metadata into system.img.
|
|
ifeq ($(BOARD_AVB_ENABLE),true)
|
|
$(error BOARD_AVB_ENABLE cannot be set for Treble GSI)
|
|
endif
|
|
BOARD_BUILD_DISABLED_VBMETAIMAGE := true
|