blob: f7deb4c1dd4781d8f8c28c7e34dbccd1af2ea195 [file] [log] [blame]
Dmitry Shmidt5d080802017-04-11 14:20:03 -07001include device/linaro/hikey/BoardConfigCommon.mk
2
Dmitry Shmidta167bf62017-08-24 12:51:42 -07003TARGET_BOOTLOADER_BOARD_NAME := hikey960
4TARGET_BOARD_PLATFORM := hikey960
5
Jake Weinsteinf2de1342017-06-23 12:23:08 -04006TARGET_CPU_VARIANT := cortex-a73
7TARGET_2ND_CPU_VARIANT := cortex-a73
8
Dmitry Shmidt5d080802017-04-11 14:20:03 -07009TARGET_NO_DTIMAGE := false
10
Alistair Strachandadf8342019-01-16 14:10:47 -080011BOARD_KERNEL_CMDLINE := androidboot.hardware=hikey960 firmware_class.path=/vendor/firmware efi=noruntime init=/init
12BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/ff3b0000.ufs
John Stultzfb375232021-01-13 03:29:47 +000013BOARD_KERNEL_CMDLINE += loglevel=15 androidboot.slot_suffix=_a
John Stultz3424dc32018-04-11 15:37:34 -070014
Dmitry Shmidta6bb66b2018-10-02 17:29:07 -070015ifeq ($(TARGET_BUILTIN_EDID), true)
16BOARD_KERNEL_CMDLINE += drm_kms_helper.edid_firmware=edid/1920x1080.bin
17endif
18
Ben Fennema52301e42017-10-17 12:24:04 -070019ifneq ($(TARGET_SENSOR_MEZZANINE),)
20BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE)
21endif
Alistair Strachandadf8342019-01-16 14:10:47 -080022
Dmitry Shmidt5d080802017-04-11 14:20:03 -070023BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000
24
John Stultz5e1a47d2019-05-14 11:33:51 -070025BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
Alistair Strachan1786ee22018-07-31 17:31:34 -070026BOARD_USERDATAIMAGE_PARTITION_SIZE := 25845301248 # 24648MB
Dmitry Shmidt5d080802017-04-11 14:20:03 -070027BOARD_FLASH_BLOCK_SIZE := 512
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070028
John Stultz6d0db312021-01-12 06:21:30 +000029# Vendor/system_ext/product partition definitions
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070030TARGET_COPY_OUT_VENDOR := vendor
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070031BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
John Stultz6d0db312021-01-12 06:21:30 +000032TARGET_COPY_OUT_SYSTEM_EXT := system_ext
33BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
34TARGET_COPY_OUT_PRODUCT := product
35BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
John Stultze8fe7172021-02-02 04:31:01 +000036BOARD_USES_METADATA_PARTITION := true
John Stultz6d0db312021-01-12 06:21:30 +000037
38#Dynamic Partition details
39TARGET_USE_DYNAMIC_PARTITIONS := true
40BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
41BOARD_SUPER_PARTITION_SIZE := 4915724288
42BOARD_SUPER_PARTITION_GROUPS := hikey960_dynamic_partitions
43BOARD_HIKEY960_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
Tianjie452dff02021-03-18 12:01:47 -070044BOARD_HIKEY960_DYNAMIC_PARTITIONS_SIZE := 4911529984 # Reserve 4M for DAP metadata
John Stultze8fe7172021-02-02 04:31:01 +000045BOARD_SUPER_PARTITION_METADATA_DEVICE := super
Yongqin Liufbd395f2021-01-27 20:49:49 +080046BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true
John Stultz6d0db312021-01-12 06:21:30 +000047
Alistair Strachan10c509c2018-11-20 18:09:27 -080048TARGET_RECOVERY_FSTAB := device/linaro/hikey/hikey960/fstab.hikey960