-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
59 lines (48 loc) · 1.6 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Copyright (C) 2018 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Include the common OEM chipset BoardConfig.
-include device/oneplus/sm8250-common/BoardConfigCommon.mk
DEVICE_PATH := device/oneplus/kebab
# Als correction
SOONG_CONFIG_OPLUS_SENSORS_ALS_POS_L := 680
SOONG_CONFIG_OPLUS_SENSORS_ALS_POS_T := 0
SOONG_CONFIG_OPLUS_SENSORS_ALS_POS_R := 780
SOONG_CONFIG_OPLUS_SENSORS_ALS_POS_B := 50
SOONG_CONFIG_OPLUS_SENSORS_ALS_SCREEN_WIDTH := 1080
SOONG_CONFIG_OPLUS_SENSORS_ALS_SCREEN_HEIGHT := 2400
# Display
TARGET_SCREEN_DENSITY := 450
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
ODM_MANIFEST_FILES += $(DEVICE_PATH)/manifest_odm.xml
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Partitions
ifneq ($(WITH_GMS),true)
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 614400000
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 287064320
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 92160000
endif
BOARD_ONEPLUS_DYNAMIC_PARTITIONS_SIZE := 7511998464
BOARD_SUPER_PARTITION_SIZE := 7516192768
# Recovery
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 103
# Sensors
SOONG_CONFIG_NAMESPACES += OPLUS_SENSORS
SOONG_CONFIG_OPLUS_SENSORS := \
ALS_POS_L \
ALS_POS_T \
ALS_POS_R \
ALS_POS_B \
ALS_SCREEN_WIDTH \
ALS_SCREEN_HEIGHT
# Touch
SOONG_CONFIG_NAMESPACES += OPLUS_LINEAGE_TOUCH_HAL
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL := INCLUDE_DIR
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL_INCLUDE_DIR := $(DEVICE_PATH)/touch/include
# Include the proprietary files BoardConfig.
-include vendor/oneplus/kebab/BoardConfigVendor.mk