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 |
| 6 | |
| 7 | # Kernel/boot.img Configuration |
| 8 | BOARD_KERNEL_CMDLINE += androidboot.hardware=axolotl |
| 9 | |
| 10 | ##### Partition handling |
| 11 | |
| 12 | BOARD_DYNAMIC_PARTITION_ENABLE := true |
| 13 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 14 | |
| 15 | # Define the Dynamic Partition sizes and groups. |
| 16 | BOARD_SUPER_PARTITION_SIZE := 12884901888 |
| 17 | BOARD_SUPER_PARTITION_GROUPS := axolotl_dynamic_partitions |
| 18 | BOARD_AXOLOTL_DYNAMIC_PARTITIONS_SIZE := 6438256640 |
| 19 | BOARD_AXOLOTL_DYNAMIC_PARTITIONS_PARTITION_LIST := \ |
| 20 | product \ |
| 21 | system \ |
| 22 | system_ext \ |
| 23 | vendor \ |
| 24 | |
| 25 | # Set error limit to BOARD_SUPER_PARTITON_SIZE - 500MB |
| 26 | BOARD_SUPER_PARTITION_ERROR_LIMIT := 12360613888 |
| 27 | |
| 28 | # boot.img |
| 29 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 30 | |
| 31 | # metadata.img |
| 32 | BOARD_METADATAIMAGE_PARTITION_SIZE := 16777216 |
| 33 | BOARD_USES_METADATA_PARTITION := true |
| 34 | |
| 35 | # product.img |
| 36 | BOARD_USES_PRODUCTIMAGE := true |
| 37 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 38 | TARGET_COPY_OUT_PRODUCT := product |
| 39 | |
| 40 | # recovery.img |
| 41 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06000000 |
| 42 | |
| 43 | # super.img |
| 44 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 45 | |
| 46 | # system_ext.img |
| 47 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 48 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 49 | |
| 50 | # userdata.img |
| 51 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737418240 |
| 52 | # Stock ships with F2FS but we force it to ext4 |
| 53 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 54 | #BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |