1# Copyright (C) 2019 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# The generic product target doesn't have any hardware-specific pieces. 17TARGET_NO_BOOTLOADER := true 18TARGET_NO_KERNEL := true 19TARGET_ARCH := arm64 20TARGET_ARCH_VARIANT := armv8-a 21TARGET_CPU_VARIANT := generic 22TARGET_CPU_ABI := arm64-v8a 23TARGET_CPU_ABI2 := 24TARGET_BOOTLOADER_BOARD_NAME := trusty_$(TARGET_ARCH) 25 26TARGET_2ND_ARCH := arm 27TARGET_2ND_ARCH_VARIANT := armv8-a 28TARGET_2ND_CPU_ABI := armeabi-v7a 29TARGET_2ND_CPU_ABI2 := armeabi 30TARGET_2ND_CPU_VARIANT := generic 31 32BOARD_SEPOLICY_DIRS += device/generic/trusty/sepolicy 33 34TARGET_USES_64_BIT_BINDER := true 35 36# We want goldfish build configuration information, but not the resulting 37# QEMU images. QEMU_CUSTOMIZATIONS turns this on without building the images 38# like BUILD_QEMU_IMAGES would imply. 39QEMU_CUSTOMIZATIONS := true 40 41TARGET_USERIMAGES_USE_EXT4 := true 42BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 # 512M 43BOARD_USERDATAIMAGE_PARTITION_SIZE := 67108864 # 64M 44TARGET_COPY_OUT_VENDOR := vendor 45# ~100 MB vendor image. Please adjust system image / vendor image sizes 46# when finalizing them. 47BOARD_VENDORIMAGE_PARTITION_SIZE := 4194304 # 4M 48BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 49BOARD_FLASH_BLOCK_SIZE := 512 50TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 51DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml 52 53BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 54BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy 55 56# Enable A/B update 57TARGET_NO_RECOVERY := true 58BOARD_BUILD_SYSTEM_ROOT_IMAGE := true 59 60# Specify HALs 61DEVICE_MANIFEST_FILE := device/generic/trusty/manifest.xml 62