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 34 35# We want goldfish build configuration information, but not the resulting 36# QEMU images. QEMU_CUSTOMIZATIONS turns this on without building the images 37# like BUILD_QEMU_IMAGES would imply. 38QEMU_CUSTOMIZATIONS := true 39 40TARGET_USERIMAGES_USE_EXT4 := true 41BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912 # 512M 42BOARD_USERDATAIMAGE_PARTITION_SIZE := 268435456 # 256M 43TARGET_COPY_OUT_VENDOR := vendor 44# ~100 MB vendor image. Please adjust system image / vendor image sizes 45# when finalizing them. 46BOARD_VENDORIMAGE_PARTITION_SIZE := 67108864 # 64M 47BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 48BOARD_FLASH_BLOCK_SIZE := 512 49TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 50 51BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 52BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy 53 54# Enable A/B update 55TARGET_NO_RECOVERY := true 56 57# Specify HALs 58DEVICE_MANIFEST_FILE := device/generic/trusty/manifest.xml 59 60# Enable full VNDK support 61BOARD_VNDK_VERSION := current 62