device_motorola_berlin/BoardConfig.mk

59 lines
1.7 KiB
Makefile
Raw Normal View History

2022-02-15 14:01:08 +01:00
#
# Copyright (C) 2022 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
2022-03-26 17:01:30 +01:00
DEVICE_PATH := device/motorola/berlin
2022-03-26 17:01:30 +01:00
# Inherit from motorola sm7325-common
-include device/motorola/sm7325-common/BoardConfigCommon.mk
2022-02-15 14:01:08 +01:00
# Bootloader
2022-03-26 17:01:30 +01:00
TARGET_BOOTLOADER_BOARD_NAME := berlin
2022-02-15 19:14:11 +01:00
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Kernel
2022-03-26 17:01:30 +01:00
TARGET_KERNEL_CONFIG += vendor/lineage_berlin.config
2022-02-15 14:01:08 +01:00
# Partitions
BOARD_USERDATAIMAGE_PARTITION_SIZE := 226517168128
ifneq ($(WITH_GMS),true)
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1073741824
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 898367488
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 1073741824
2022-02-15 14:01:08 +01:00
endif
BOARD_MOT_DP_GROUP_SIZE := 7109345280
2022-02-15 14:01:08 +01:00
BOARD_SUPER_PARTITION_SIZE := 14227079168
2022-02-20 17:24:43 +01:00
# Power
TARGET_TAP_TO_WAKE_NODE := "/sys/class/sensors/dt-gesture/enable"
# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
2022-02-18 01:36:06 +01:00
# Recovery
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
# Security
VENDOR_SECURITY_PATCH := 2021-12-01
# inherit from the proprietary version
2022-03-26 17:01:30 +01:00
-include vendor/motorola/berlin/BoardConfigVendor.mk