Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame] | 1 | include device/linaro/hikey960/BoardConfigCommon.mk |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 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 |
Amit Pundir | fa66979 | 2023-10-17 12:27:36 +0530 | [diff] [blame] | 14 | BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange |
John Stultz | 3424dc3 | 2018-04-11 15:37:34 -0700 | [diff] [blame] | 15 | |
Dmitry Shmidt | a6bb66b | 2018-10-02 17:29:07 -0700 | [diff] [blame] | 16 | ifeq ($(TARGET_BUILTIN_EDID), true) |
| 17 | BOARD_KERNEL_CMDLINE += drm_kms_helper.edid_firmware=edid/1920x1080.bin |
| 18 | endif |
| 19 | |
Ben Fennema | 52301e4 | 2017-10-17 12:24:04 -0700 | [diff] [blame] | 20 | ifneq ($(TARGET_SENSOR_MEZZANINE),) |
| 21 | BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE) |
| 22 | endif |
Alistair Strachan | dadf834 | 2019-01-16 14:10:47 -0800 | [diff] [blame] | 23 | |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 24 | BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 |
| 25 | |
John Stultz | 5e1a47d | 2019-05-14 11:33:51 -0700 | [diff] [blame] | 26 | BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 |
Alistair Strachan | 1786ee2 | 2018-07-31 17:31:34 -0700 | [diff] [blame] | 27 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 25845301248 # 24648MB |
Dmitry Shmidt | 5d08080 | 2017-04-11 14:20:03 -0700 | [diff] [blame] | 28 | BOARD_FLASH_BLOCK_SIZE := 512 |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 29 | |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 30 | # Vendor/system_ext/product partition definitions |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 31 | TARGET_COPY_OUT_VENDOR := vendor |
Dmitry Shmidt | 168e6d6 | 2018-04-04 17:00:32 -0700 | [diff] [blame] | 32 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 33 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 34 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 35 | TARGET_COPY_OUT_PRODUCT := product |
| 36 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
John Stultz | e8fe717 | 2021-02-02 04:31:01 +0000 | [diff] [blame] | 37 | BOARD_USES_METADATA_PARTITION := true |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 38 | |
| 39 | #Dynamic Partition details |
| 40 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 41 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 42 | BOARD_SUPER_PARTITION_SIZE := 4915724288 |
| 43 | BOARD_SUPER_PARTITION_GROUPS := hikey960_dynamic_partitions |
| 44 | BOARD_HIKEY960_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
Tianjie | 452dff0 | 2021-03-18 12:01:47 -0700 | [diff] [blame] | 45 | BOARD_HIKEY960_DYNAMIC_PARTITIONS_SIZE := 4911529984 # Reserve 4M for DAP metadata |
John Stultz | e8fe717 | 2021-02-02 04:31:01 +0000 | [diff] [blame] | 46 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
Yongqin Liu | fbd395f | 2021-01-27 20:49:49 +0800 | [diff] [blame] | 47 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
John Stultz | 6d0db31 | 2021-01-12 06:21:30 +0000 | [diff] [blame] | 48 | |
Amit Pundir | e0b34ce | 2023-10-19 18:29:28 +0530 | [diff] [blame] | 49 | TARGET_RECOVERY_FSTAB := device/linaro/hikey960/linaro_hikey960/fstab.hikey960 |