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 45BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 46 47BOARD_USERDATAIMAGE_PARTITION_SIZE := 1153433600 48 49BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 50 51# Normally, the bootloader is supposed to concatenate the Android initramfs 52# and the initramfs for the kernel modules and let the kernel combine 53# them. However, the bootloader that we're using with FVP (U-Boot) doesn't 54# support concatenation, so we implement it in the build system. 55$(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/boot.img: $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/combined-ramdisk.img 56 57$(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 58 cat $^ > $@ 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 := $(OUT_DIR)/target/product/$(PRODUCT_DEVICE) 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