1include device/linaro/hikey/BoardConfigCommon.mk 2 3TARGET_BOOTLOADER_BOARD_NAME := hikey960 4TARGET_BOARD_PLATFORM := hikey960 5 6TARGET_CPU_VARIANT := cortex-a73 7TARGET_2ND_CPU_VARIANT := cortex-a73 8 9TARGET_NO_DTIMAGE := false 10 11BOARD_KERNEL_CMDLINE := androidboot.hardware=hikey960 firmware_class.path=/vendor/firmware efi=noruntime init=/init 12BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/ff3b0000.ufs 13BOARD_KERNEL_CMDLINE += loglevel=15 androidboot.slot_suffix=_a 14 15ifeq ($(HIKEY960_ENABLE_AVF), true) 16# The GKI kernel set protected mode by default via gki_defconfig, 17# but hikey960 does not support the protected kvm mode, here overwriting 18# to make it possible to play with AVF in the non-protected mode. 19BOARD_KERNEL_CMDLINE += kvm-arm.mode=nvhe 20# hypervisor.version would be better to be the same as CROSVM_PLATFORM_VERSION in 21# packages/modules/Virtualization/virtualizationmanager/src/crosvm.rs 22BOARD_KERNEL_CMDLINE += androidboot.hypervisor.version=1.0.0 23BOARD_KERNEL_CMDLINE += androidboot.hypervisor.vm.supported=1 24BOARD_KERNEL_CMDLINE += androidboot.hypervisor.protected_vm.supported=0 25endif 26 27ifeq ($(TARGET_BUILTIN_EDID), true) 28BOARD_KERNEL_CMDLINE += drm_kms_helper.edid_firmware=edid/1920x1080.bin 29endif 30 31ifneq ($(TARGET_SENSOR_MEZZANINE),) 32BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE) 33endif 34 35BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 36 37BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 38BOARD_USERDATAIMAGE_PARTITION_SIZE := 25845301248 # 24648MB 39BOARD_FLASH_BLOCK_SIZE := 512 40 41# Vendor/system_ext/product partition definitions 42TARGET_COPY_OUT_VENDOR := vendor 43BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 44TARGET_COPY_OUT_SYSTEM_EXT := system_ext 45BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 46TARGET_COPY_OUT_PRODUCT := product 47BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 48BOARD_USES_METADATA_PARTITION := true 49 50#Dynamic Partition details 51TARGET_USE_DYNAMIC_PARTITIONS := true 52BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true 53BOARD_SUPER_PARTITION_SIZE := 4915724288 54BOARD_SUPER_PARTITION_GROUPS := hikey960_dynamic_partitions 55BOARD_HIKEY960_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product 56BOARD_HIKEY960_DYNAMIC_PARTITIONS_SIZE := 4911529984 # Reserve 4M for DAP metadata 57BOARD_SUPER_PARTITION_METADATA_DEVICE := super 58BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true 59 60TARGET_RECOVERY_FSTAB := device/linaro/hikey/hikey960/fstab.hikey960 61