Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 1 | include device/linaro/hikey/BoardConfigCommon.mk |
| 2 | |
Dmitry Shmidt | a167bf6 | 2017-08-24 12:51:42 -0700 | [diff] [blame] | 3 | TARGET_BOOTLOADER_BOARD_NAME := hikey960 |
| 4 | TARGET_BOARD_PLATFORM := hikey960 |
| 5 | |
Jake Weinstein | f2de134 | 2017-06-23 12:23:08 -0400 | [diff] [blame] | 6 | TARGET_CPU_VARIANT := cortex-a73 |
| 7 | TARGET_2ND_CPU_VARIANT := cortex-a73 |
| 8 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 9 | TARGET_NO_DTIMAGE := false |
| 10 | |
Alistair Strachan | dadf834 | 2019-01-16 14:10:47 -0800 | [diff] [blame] | 11 | BOARD_KERNEL_CMDLINE := androidboot.hardware=hikey960 firmware_class.path=/vendor/firmware efi=noruntime init=/init |
| 12 | BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/ff3b0000.ufs |
John Stultz | fb37523 | 2021-01-13 03:29:47 +0000 | [diff] [blame] | 13 | BOARD_KERNEL_CMDLINE += loglevel=15 androidboot.slot_suffix=_a |
John Stultz | 3424dc3 | 2018-04-11 15:37:34 -0700 | [diff] [blame] | 14 | |
Dmitry Shmidt | a6bb66b | 2018-10-02 17:29:07 -0700 | [diff] [blame] | 15 | ifeq ($(TARGET_BUILTIN_EDID), true) |
| 16 | BOARD_KERNEL_CMDLINE += drm_kms_helper.edid_firmware=edid/1920x1080.bin |
| 17 | endif |
| 18 | |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 19 | ifneq ($(TARGET_SENSOR_MEZZANINE),) |
| 20 | BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE) |
| 21 | endif |
Alistair Strachan | dadf834 | 2019-01-16 14:10:47 -0800 | [diff] [blame] | 22 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 23 | BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 |
| 24 | |
John Stultz | 5e1a47d | 2019-05-14 11:33:51 -0700 | [diff] [blame] | 25 | BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 |
Alistair Strachan | 1786ee2 | 2018-07-31 17:31:34 -0700 | [diff] [blame] | 26 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 25845301248 # 24648MB |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 27 | BOARD_FLASH_BLOCK_SIZE := 512 |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 28 | |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 29 | # Vendor/system_ext/product partition definitions |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 30 | TARGET_COPY_OUT_VENDOR := vendor |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 31 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 32 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 33 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 34 | TARGET_COPY_OUT_PRODUCT := product |
| 35 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
John Stultz | e8fe717 | 2021-02-02 04:31:01 +0000 | [diff] [blame] | 36 | BOARD_USES_METADATA_PARTITION := true |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 37 | |
| 38 | #Dynamic Partition details |
| 39 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 40 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 41 | BOARD_SUPER_PARTITION_SIZE := 4915724288 |
| 42 | BOARD_SUPER_PARTITION_GROUPS := hikey960_dynamic_partitions |
| 43 | BOARD_HIKEY960_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
Tianjie | 452dff0 | 2021-03-18 12:01:47 -0700 | [diff] [blame] | 44 | BOARD_HIKEY960_DYNAMIC_PARTITIONS_SIZE := 4911529984 # Reserve 4M for DAP metadata |
John Stultz | e8fe717 | 2021-02-02 04:31:01 +0000 | [diff] [blame] | 45 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
Yongqin Liu | fbd395f | 2021-01-27 20:49:49 +0800 | [diff] [blame] | 46 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 47 | |
Alistair Strachan | 10c509c | 2018-11-20 18:09:27 -0800 | [diff] [blame] | 48 | TARGET_RECOVERY_FSTAB := device/linaro/hikey/hikey960/fstab.hikey960 |