Amit Pundir | fb9cf9b | 2022-03-27 21:52:15 +0530 | [diff] [blame] | 1 | include device/generic/sdm845/shared/BoardConfig.mk |
Alexander Martinz | 38bb825 | 2022-01-07 17:16:46 +0100 | [diff] [blame] | 2 | |
| 3 | # Board Information |
| 4 | TARGET_BOOTLOADER_BOARD_NAME := axolotl |
| 5 | TARGET_BOARD_PLATFORM := axolotl |
Luca Weiss | 0c2db53 | 2022-06-18 17:20:08 +0200 | [diff] [blame] | 6 | TARGET_SCREEN_DENSITY := 400 |
Alexander Martinz | 38bb825 | 2022-01-07 17:16:46 +0100 | [diff] [blame] | 7 | |
| 8 | # Kernel/boot.img Configuration |
| 9 | BOARD_KERNEL_CMDLINE += androidboot.hardware=axolotl |
| 10 | |
| 11 | ##### Partition handling |
| 12 | |
| 13 | BOARD_DYNAMIC_PARTITION_ENABLE := true |
| 14 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 15 | |
| 16 | # Define the Dynamic Partition sizes and groups. |
| 17 | BOARD_SUPER_PARTITION_SIZE := 12884901888 |
| 18 | BOARD_SUPER_PARTITION_GROUPS := axolotl_dynamic_partitions |
| 19 | BOARD_AXOLOTL_DYNAMIC_PARTITIONS_SIZE := 6438256640 |
| 20 | BOARD_AXOLOTL_DYNAMIC_PARTITIONS_PARTITION_LIST := \ |
| 21 | product \ |
| 22 | system \ |
| 23 | system_ext \ |
| 24 | vendor \ |
| 25 | |
| 26 | # Set error limit to BOARD_SUPER_PARTITON_SIZE - 500MB |
| 27 | BOARD_SUPER_PARTITION_ERROR_LIMIT := 12360613888 |
| 28 | |
| 29 | # boot.img |
| 30 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 31 | |
| 32 | # metadata.img |
| 33 | BOARD_METADATAIMAGE_PARTITION_SIZE := 16777216 |
| 34 | BOARD_USES_METADATA_PARTITION := true |
| 35 | |
| 36 | # product.img |
| 37 | BOARD_USES_PRODUCTIMAGE := true |
| 38 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 39 | TARGET_COPY_OUT_PRODUCT := product |
| 40 | |
| 41 | # recovery.img |
| 42 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06000000 |
| 43 | |
| 44 | # super.img |
| 45 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 46 | |
| 47 | # system_ext.img |
| 48 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 49 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 50 | |
| 51 | # userdata.img |
| 52 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737418240 |
| 53 | # Stock ships with F2FS but we force it to ext4 |
| 54 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 55 | #BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |