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