blob: 4995b75b633850c85de73495646c96796d2dc6a9 [file] [log] [blame]
Amit Pundirbd765d62024-03-08 22:31:43 +05301include device/linaro/dragonboard/BoardConfigCommon.mk
2
3# Primary Arch
4TARGET_ARCH := arm64
5TARGET_ARCH_VARIANT := armv9-a
6TARGET_CPU_VARIANT := kryo385
7TARGET_CPU_ABI := arm64-v8a
8
9# Board Information
10TARGET_BOOTLOADER_BOARD_NAME := sm8x50
11TARGET_BOARD_PLATFORM := sm8x50
12
13TARGET_NO_KERNEL := false
14BOARD_INCLUDE_DTB_IN_BOOTIMG := true
15BOARD_BOOT_HEADER_VERSION := 2 # XXX v4 is WIP
16BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
17
18BOARD_KERNEL_BASE := 0x80000000
19BOARD_KERNEL_PAGESIZE := 4096
20BOARD_KERNEL_CMDLINE += earlycon firmware_class.path=/vendor/firmware/
21BOARD_KERNEL_CMDLINE += init=/init printk.devkmsg=on
22BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
23BOARD_KERNEL_CMDLINE += qcom_geni_serial.con_enabled=1
24BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8
25BOARD_KERNEL_CMDLINE += allow_mismatched_32bit_el0 clk_ignore_unused pd_ignore_unused
26BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc@0/1d84000.ufs
27BOARD_KERNEL_CMDLINE += androidboot.hardware=sm8x50
28BOARD_KERNEL_CMDLINE += androidboot.verifiedbootstate=orange
29
30# Image Configuration
31BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
32BOARD_USERDATAIMAGE_PARTITION_SIZE := 223226966016 #200+G
33BOARD_FLASH_BLOCK_SIZE := 131072
34# Super partition
35BOARD_SUPER_PARTITION_SIZE := 6442450944 #6GB
36BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 6438256640 # Reserve 4M for DAP metadata
37BOARD_SUPER_PARTITION_METADATA_DEVICE := super
38BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true
39BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
40
41# Platform specific sepolicies
42BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/sm8x50/sepolicy/
43
44# dlkm partitions
45include device/linaro/dragonboard/shared/utils/dlkm_loader/BoardConfig.mk
46BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST += system_dlkm vendor_dlkm
47BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/
48
49# Graphics
50include device/linaro/dragonboard/shared/graphics/drm_hwcomposer/BoardConfig.mk
Amit Pundire4d2a612024-04-04 01:31:11 +053051ifeq ($(TARGET_USES_SWR), true)
Amit Pundirbd765d62024-03-08 22:31:43 +053052BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/swangle/sepolicy
Amit Pundire4d2a612024-04-04 01:31:11 +053053else
54include device/linaro/dragonboard/shared/graphics/mesa/BoardConfig.mk
55endif
Amit Pundirbd765d62024-03-08 22:31:43 +053056BOARD_SEPOLICY_DIRS += device/linaro/dragonboard/shared/graphics/minigbm_msm/sepolicy