blob: ff9c96f19b3fd5be401b10f1a0210dea0920ff5f [file] [log] [blame]
Amit Pundire0b34ce2023-10-19 18:29:28 +05301include device/linaro/hikey960/BoardConfigCommon.mk
Dmitry Shmidt5d080802017-04-11 14:20:03 -07002
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
Amit Pundirfa669792023-10-17 12:27:36 +053014BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange
John Stultz3424dc32018-04-11 15:37:34 -070015
Dmitry Shmidta6bb66b2018-10-02 17:29:07 -070016ifeq ($(TARGET_BUILTIN_EDID), true)
17BOARD_KERNEL_CMDLINE += drm_kms_helper.edid_firmware=edid/1920x1080.bin
18endif
19
Ben Fennema52301e42017-10-17 12:24:04 -070020ifneq ($(TARGET_SENSOR_MEZZANINE),)
21BOARD_KERNEL_CMDLINE += overlay_mgr.overlay_dt_entry=hardware_cfg_$(TARGET_SENSOR_MEZZANINE)
22endif
Alistair Strachandadf8342019-01-16 14:10:47 -080023
Dmitry Shmidt5d080802017-04-11 14:20:03 -070024BOARD_MKBOOTIMG_ARGS := --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000
25
John Stultz5e1a47d2019-05-14 11:33:51 -070026BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
Alistair Strachan1786ee22018-07-31 17:31:34 -070027BOARD_USERDATAIMAGE_PARTITION_SIZE := 25845301248 # 24648MB
Dmitry Shmidt5d080802017-04-11 14:20:03 -070028BOARD_FLASH_BLOCK_SIZE := 512
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070029
John Stultz6d0db312021-01-12 06:21:30 +000030# Vendor/system_ext/product partition definitions
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070031TARGET_COPY_OUT_VENDOR := vendor
Dmitry Shmidt168e6d62018-04-04 17:00:32 -070032BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
John Stultz6d0db312021-01-12 06:21:30 +000033TARGET_COPY_OUT_SYSTEM_EXT := system_ext
34BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
35TARGET_COPY_OUT_PRODUCT := product
36BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
John Stultze8fe7172021-02-02 04:31:01 +000037BOARD_USES_METADATA_PARTITION := true
John Stultz6d0db312021-01-12 06:21:30 +000038
39#Dynamic Partition details
40TARGET_USE_DYNAMIC_PARTITIONS := true
41BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
42BOARD_SUPER_PARTITION_SIZE := 4915724288
43BOARD_SUPER_PARTITION_GROUPS := hikey960_dynamic_partitions
44BOARD_HIKEY960_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
Tianjie452dff02021-03-18 12:01:47 -070045BOARD_HIKEY960_DYNAMIC_PARTITIONS_SIZE := 4911529984 # Reserve 4M for DAP metadata
John Stultze8fe7172021-02-02 04:31:01 +000046BOARD_SUPER_PARTITION_METADATA_DEVICE := super
Yongqin Liufbd395f2021-01-27 20:49:49 +080047BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true
John Stultz6d0db312021-01-12 06:21:30 +000048
Amit Pundire0b34ce2023-10-19 18:29:28 +053049TARGET_RECOVERY_FSTAB := device/linaro/hikey960/linaro_hikey960/fstab.hikey960