blob: 183799ac7c515df16eb5e268dc9eff04ef59198b [file] [log] [blame]
Alexander Martinz54fdc2d2021-04-22 14:19:05 +02001#
2# Copyright 2021 SHIFT GmbH
3# Copyright 2021 The LineageOS Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18# Use the non-open-source parts, if they're present
19-include vendor/shift/axolotl/BoardConfigVendor.mk
20
21DEVICE_PATH := device/shift/axolotl
22
23BOARD_VENDOR := shift
24
25##########
26
27# Architecture
28TARGET_ARCH := arm64
29TARGET_ARCH_VARIANT := armv8-a
30TARGET_CPU_ABI := arm64-v8a
31TARGET_CPU_ABI2 :=
32TARGET_CPU_VARIANT := generic
33TARGET_CPU_VARIANT_RUNTIME := kryo385
34
35TARGET_2ND_ARCH := arm
36TARGET_2ND_ARCH_VARIANT := armv8-2a
37TARGET_2ND_CPU_ABI := armeabi-v7a
38TARGET_2ND_CPU_ABI2 := armeabi
39TARGET_2ND_CPU_VARIANT := generic
40TARGET_2ND_CPU_VARIANT_RUNTIME := kryo385
41
42# Bootloader
43TARGET_BOOTLOADER_BOARD_NAME := sdm845
44TARGET_NO_BOOTLOADER := true
45TARGET_NO_KERNEL := false
46
47# Kernel
48TARGET_KERNEL_ARCH := arm64
49TARGET_KERNEL_HEADER_ARCH := arm64
50TARGET_KERNEL_CLANG_COMPILE := true
51TARGET_KERNEL_CONFIG := lineage_axolotl_defconfig
52TARGET_KERNEL_SOURCE := kernel/shift/sdm845
53#TARGET_NEEDS_DTBOIMAGE := true
54TARGET_USES_UNCOMPRESSED_KERNEL := false
55
56BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
57BOARD_KERNEL_BASE := 0x00000000
58BOARD_KERNEL_PAGESIZE := 4096
59BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
60BOARD_RAMDISK_OFFSET := 0x02000000
61
62BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xA84000 androidboot.console=ttyMSM0 printk.devkmsg=on
63BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom video=vfb:640x400,bpp=32,memsize=3072000 androidboot.configfs=true loop.max_part=7
64BOARD_KERNEL_CMDLINE += msm_rtb.filter=0x237
65BOARD_KERNEL_CMDLINE += ehci-hcd.park=3
66BOARD_KERNEL_CMDLINE += service_locator.enable=1
67BOARD_KERNEL_CMDLINE += androidboot.memcg=1 cgroup.memory=nokmem
68BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 swiotlb=2048
69BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/1d84000.ufshc
70BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
71
72BOARD_INCLUDE_DTB_IN_BOOTIMG := true
73BOARD_MKBOOTIMG_ARGS := --header_version 2
74
75# Platform
76TARGET_BOARD_PLATFORM := sdm845
77TARGET_BOARD_PLATFORM_GPU := qcom-adreno630
78
79##########
80
81# AB
82AB_OTA_UPDATER := true
83#AB_OTA_PARTITIONS += boot dtbo system vendor vbmeta vbmeta_system vbmeta_vendor
84AB_OTA_PARTITIONS += system vbmeta
85
86# APEX
87DEXPREOPT_GENERATE_APEX_IMAGE := true
88
89# Audio
90USE_XML_AUDIO_POLICY_CONF := 1
91
92# Bluetooth
93BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
94
95# Treble
96BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
97BOARD_VNDK_VERSION := current
98TARGET_COPY_OUT_VENDOR := vendor
99TARGET_COPY_OUT_PRODUCT := product
100TARGET_USES_64_BIT_BINDER := true
101
102# GSI forces product packages to /system for now.
103TARGET_COPY_OUT_PRODUCT := system/product
104BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE :=
105
106# Partitions
107BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
108BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06000000
109TARGET_USERIMAGES_USE_EXT4 := true
110TARGET_USERIMAGES_USE_F2FS := true
111
112# Partitions - DTBO
113BOARD_DTBOIMG_PARTITION_SIZE := 0x0800000
114#BOARD_PREBUILT_DTBOIMAGE := out/target/product/$(TARGET_PRODUCT)/prebuilt_dtbo.img
115
116# Enable dynamic system image size and reserved 64MB in it.
117BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
118
119# Partition mount points under root
120BOARD_USES_METADATA_PARTITION := true
121
122# Dynamic Partitions
123BOARD_DYNAMIC_PARTITION_ENABLE := true
124BOARD_EXT4_SHARE_DUP_BLOCKS := true
125BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 6438256640
126#BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system product vendor
127BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system
128BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
129BOARD_SUPER_PARTITION_SIZE := 12884901888
130
131# Recovery
132#BOARD_INCLUDE_RECOVERY_DTBO := true
133TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.axolotl
134TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
135TARGET_RECOVERY_UI_LIB := \
136 libfstab \
137
138# Verified Boot
139BOARD_AVB_ENABLE := true
140
141# Qualcomm BSP
142BOARD_USES_QCOM_HARDWARE := true
143BUILD_WITHOUT_VENDOR := true
144
145TARGET_SYSTEM_PROP := $(DEVICE_PATH)/system.prop