1# Copyright (C) 2020 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 16TARGET_ARCH := arm64 17TARGET_ARCH_VARIANT := armv8-a 18TARGET_CPU_VARIANT := generic 19TARGET_CPU_ABI := arm64-v8a 20 21ifeq ($(FVP_MULTILIB_BUILD),true) 22TARGET_2ND_ARCH := arm 23TARGET_2ND_CPU_ABI := armeabi-v7a 24TARGET_2ND_CPU_ABI2 := armeabi 25TARGET_2ND_ARCH_VARIANT := armv8-a 26TARGET_2ND_CPU_VARIANT := generic 27endif 28 29include build/make/target/board/BoardConfigMainlineCommon.mk 30 31BOARD_USES_SYSTEM_OTHER_ODEX := 32 33BUILD_QEMU_IMAGES := true 34TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 35 36BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true 37 38BOARD_SUPER_PARTITION_SIZE := 3229614080 39BOARD_SUPER_PARTITION_GROUPS := fvp_dynamic_partitions 40BOARD_FVP_DYNAMIC_PARTITIONS_SIZE := 3221225472 41BOARD_FVP_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor 42TARGET_COPY_OUT_PRODUCT := system/product 43TARGET_COPY_OUT_SYSTEM_EXT := system/system_ext 44# BOARD_X_FILE_SYSTEM_TYPE must be empty if TARGET_COPY_OUT_X is 'system/xyz'. 45BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := 46BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := 47 48BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 49 50BOARD_USERDATAIMAGE_PARTITION_SIZE := 1153433600 51 52TARGET_KERNEL_USE ?= 5.10 53 54PRODUCT_COPY_FILES += kernel/prebuilts/$(TARGET_KERNEL_USE)/arm64/kernel-$(TARGET_KERNEL_USE):kernel 55 56# This enables the rules defined in 57# device/generic/goldfish/build/tasks/combine_initramfs.mk 58GOLDFISH_COMBINE_INITRAMFS := true 59 60BOARD_MKBOOTIMG_ARGS := --header_version 2 --ramdisk $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/combined-ramdisk.img 61BOARD_INCLUDE_DTB_IN_BOOTIMG := true 62BOARD_PREBUILT_DTBIMAGE_DIR := kernel/prebuilts/common-modules/virtual-device/$(TARGET_KERNEL_USE)/arm64 63 64BOARD_KERNEL_CMDLINE := \ 65 console=ttyAMA0 \ 66 earlycon=pl011,0x1c090000 \ 67 androidboot.hardware=fvpbase \ 68 androidboot.boot_device=bus@8000000/bus@8000000:motherboard-bus/bus@8000000:motherboard-bus:iofpga-bus@300000000/1c130000.virtio-block \ 69 loglevel=9 \ 70 71BOARD_SEPOLICY_DIRS += device/generic/goldfish/fvpbase/sepolicy 72