| include device/linaro/dragonboard/BoardConfigCommon.mk |
| |
| # Primary Arch |
| TARGET_ARCH := arm64 |
| TARGET_ARCH_VARIANT := armv9-a |
| TARGET_CPU_VARIANT := kryo385 |
| TARGET_CPU_ABI := arm64-v8a |
| |
| # Board Information |
| TARGET_BOOTLOADER_BOARD_NAME := sm8x50 |
| TARGET_BOARD_PLATFORM := sm8x50 |
| |
| TARGET_NO_KERNEL := false |
| BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| BOARD_BOOT_HEADER_VERSION := 2 # XXX v4 is WIP |
| BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| |
| BOARD_KERNEL_BASE := 0x80000000 |
| BOARD_KERNEL_PAGESIZE := 4096 |
| BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/ |
| BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on |
| BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 |
| BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1 |
| BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8 |
| BOARD_KERNEL_CMDLINE += allow_mismatched_32bit_el0 clk_ignore_unused pd_ignore_unused |
| BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc@0/1d84000.ufs |
| BOARD_KERNEL_CMDLINE += androidboot.hardware=sm8x50 |
| BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange |
| |
| # Image Configuration |
| BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M |
| BOARD_USERDATAIMAGE_PARTITION_SIZE := 223226966016 #200+G |
| BOARD_FLASH_BLOCK_SIZE := 131072 |
| # Super partition |
| BOARD_SUPER_PARTITION_SIZE := 6442450944 #6GB |
| BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 6438256640 # Reserve 4M for DAP metadata |
| BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
| BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |
| BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
| |
| # Platform specific sepolicies |
| BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/sm8x50/sepolicy/ |
| |
| # dlkm partitions |
| include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk |
| BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST += system_dlkm vendor_dlkm |
| BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/ |
| |
| # Graphics |
| include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk |
| ifeq ($(TARGET_USES_SWR), true) |
| BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/swangle/sepolicy |
| else |
| include device/linaro/dragonboard/shared/graphics/mesa/BoardConfig.mk |
| endif |
| BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy |