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 16TARGET_ARCH := arm64 17TARGET_ARCH_VARIANT := armv8-a 18TARGET_CPU_VARIANT := generic 19TARGET_CPU_ABI := arm64-v8a 20 21TARGET_2ND_ARCH := arm 22TARGET_2ND_CPU_ABI := armeabi-v7a 23TARGET_2ND_CPU_ABI2 := armeabi 24TARGET_2ND_ARCH_VARIANT := armv8-a 25TARGET_2ND_CPU_VARIANT := generic 26 27include build/make/target/board/BoardConfigMainlineCommon.mk 28 29BOARD_USES_SYSTEM_OTHER_ODEX := 30 31BUILD_QEMU_IMAGES := true 32TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 33 34BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true 35 36BOARD_SUPER_PARTITION_SIZE := 3229614080 37BOARD_SUPER_PARTITION_GROUPS := fvp_dynamic_partitions 38BOARD_FVP_DYNAMIC_PARTITIONS_SIZE := 3221225472 39BOARD_FVP_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor 40TARGET_COPY_OUT_PRODUCT := system/product 41TARGET_COPY_OUT_SYSTEM_EXT := system/system_ext 42 43BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 44 45BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 46 47BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 48 49# Normally, the bootloader is supposed to concatenate the Android initramfs 50# and the initramfs for the kernel modules and let the kernel combine 51# them. However, the bootloader that we're using with FVP (U-Boot) doesn't 52# support concatenation, so we implement it in the build system. 53$(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/boot.img: $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/combined-ramdisk.img 54 55$(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/combined-ramdisk.img: $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/ramdisk.img $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/initramfs.img 56 cat $^ > $@ 57 58BOARD_MKBOOTIMG_ARGS := --header_version 2 --ramdisk $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/combined-ramdisk.img 59BOARD_INCLUDE_DTB_IN_BOOTIMG := true 60BOARD_PREBUILT_DTBIMAGE_DIR := $(OUT_DIR)/target/product/$(PRODUCT_DEVICE) 61 62BOARD_KERNEL_CMDLINE := \ 63 console=ttyAMA0 \ 64 earlycon=pl011,0x1c090000 \ 65 androidboot.hardware=fvpbase \ 66 androidboot.boot_device=bus@8000000/bus@8000000:motherboard/bus@8000000:motherboard:iofpga@3,00000000/1c130000.virtio-block \ 67 loglevel=9 \ 68 69BOARD_SEPOLICY_DIRS += device/generic/goldfish/fvpbase/sepolicy 70 71TARGET_EXPERIMENTAL_MTE := true 72