Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 1 | include device/linaro/dragonboard/BoardConfigCommon.mk |
| 2 | |
| 3 | # Primary Arch |
| 4 | TARGET_ARCH := arm64 |
| 5 | TARGET_ARCH_VARIANT := armv8-2a |
| 6 | TARGET_CPU_VARIANT := kryo385 |
| 7 | TARGET_CPU_ABI := arm64-v8a |
| 8 | |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 9 | # Board Information |
| 10 | TARGET_BOOTLOADER_BOARD_NAME := linaro_swr |
| 11 | TARGET_BOARD_PLATFORM := linaro_swr |
| 12 | |
| 13 | TARGET_NO_KERNEL := false |
| 14 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 15 | BOARD_BOOT_HEADER_VERSION := 4 |
| 16 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 17 | |
| 18 | BOARD_KERNEL_BASE := 0x80000000 |
Sumit Semwal | f46e1eb | 2024-05-07 17:30:53 +0530 | [diff] [blame] | 19 | # BOARD_KERNEL_PAGESIZE := 4096 |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 20 | BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/ |
| 21 | BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on |
| 22 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
| 23 | BOARD_KERNEL_CMDLINE += pcie_pme=nomsi #For WiFi to work on rb5 |
| 24 | BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 |
| 25 | BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8 |
| 26 | BOARD_BOOTCONFIG := androidboot.hardware=linaro_swr androidboot.boot_devices=soc@0/1d84000.ufshc |
| 27 | BOARD_BOOTCONFIG += androidboot.verifiedbootstate=orange |
| 28 | |
Sumit Semwal | f46e1eb | 2024-05-07 17:30:53 +0530 | [diff] [blame] | 29 | # page-agnostic needs |
| 30 | BOARD_MKBOOTIMG_ARGS += --pagesize 4096 |
| 31 | INTERNAL_VENDOR_BOOTIMAGE_ARGS += --pagesize 4096 |
| 32 | |
| 33 | # since f2fs doesn't support multiple pagesize kernels, |
| 34 | # set /userdata to ext4 for this build target |
| 35 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 36 | |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 37 | # Image Configuration |
Amit Pundir | dfe152c | 2024-02-22 19:06:49 +0530 | [diff] [blame] | 38 | BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296 #96M |
| 39 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296 #96M |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 40 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G |
| 41 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 42 | # Super partition |
| 43 | BOARD_SUPER_PARTITION_SIZE := 12437225472 |
| 44 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 12433031168 # Reserve 4M for DAP metadata |
| 45 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
| 46 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
Amit Pundir | dfe152c | 2024-02-22 19:06:49 +0530 | [diff] [blame] | 47 | BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
| 48 | |
| 49 | # dlkm partitions |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 50 | include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk |
Amit Pundir | dfe152c | 2024-02-22 19:06:49 +0530 | [diff] [blame] | 51 | BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST += system_dlkm vendor_dlkm |
Amit Pundir | b2534ba | 2023-09-12 19:16:36 +0530 | [diff] [blame] | 52 | BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/ |
| 53 | |
| 54 | # Graphics |
| 55 | include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk |
| 56 | BOARD_SEPOLICY_DIRS += \ |
| 57 | device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy \ |
| 58 | device/linaro/dragonboard/shared/graphics/swangle/sepolicy |