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-02-16 23:32:31 +01:00
|
|
|
|
2022-03-26 17:01:30 +01:00
|
|
|
# Inherit from motorola sm7325-common
|
2022-08-07 19:13:58 -04:00
|
|
|
include device/motorola/sm7325-common/BoardConfigCommon.mk
|
2022-02-15 14:01:08 +01:00
|
|
|
|
2022-03-09 17:23:40 +01:00
|
|
|
# Bootloader
|
2022-03-26 17:01:30 +01:00
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := berlin
|
2022-03-09 17:23:40 +01:00
|
|
|
|
2022-03-06 23:03:33 +01:00
|
|
|
# HIDL
|
2022-07-29 21:02:31 +02:00
|
|
|
DEVICE_MANIFEST_YUPIK_FILES += $(DEVICE_PATH)/manifest_berlin.xml
|
2022-03-06 23:03:33 +01:00
|
|
|
|
2022-02-17 12:06:58 +01:00
|
|
|
# Kernel
|
2022-08-03 23:15:17 -06:00
|
|
|
BOARD_KERNEL_CMDLINE += androidboot.hab.product=berlin
|
2022-03-26 17:01:30 +01:00
|
|
|
TARGET_KERNEL_CONFIG += vendor/lineage_berlin.config
|
2022-02-17 12:06:58 +01:00
|
|
|
|
2022-03-25 20:58:27 +01:00
|
|
|
# Kernel Modules
|
2022-04-04 22:23:30 +02:00
|
|
|
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
|
2022-07-29 13:52:02 +02:00
|
|
|
BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist
|
2022-03-25 20:58:27 +01:00
|
|
|
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
|
|
|
|
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD)
|
|
|
|
|
2022-02-15 14:01:08 +01:00
|
|
|
# Partitions
|
2022-03-27 00:05:39 +01:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 102247673856
|
2022-02-15 14:01:08 +01:00
|
|
|
ifneq ($(WITH_GMS),true)
|
2022-02-23 21:39:58 +01:00
|
|
|
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1073741824
|
2022-02-17 22:32:23 +01:00
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 898367488
|
2022-02-23 21:39:58 +01:00
|
|
|
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 1073741824
|
2022-02-15 14:01:08 +01:00
|
|
|
endif
|
2022-02-17 22:32:23 +01:00
|
|
|
BOARD_MOT_DP_GROUP_SIZE := 7109345280
|
2022-02-15 14:01:08 +01:00
|
|
|
BOARD_SUPER_PARTITION_SIZE := 14227079168
|
2022-02-15 18:31:18 +01:00
|
|
|
|
2022-02-20 17:24:43 +01:00
|
|
|
# Power
|
2022-08-04 12:28:44 +02:00
|
|
|
TARGET_TAP_TO_WAKE_NODE := "/sys/devices/platform/soc/a94000.i2c/i2c-2/2-0049/double_click"
|
2022-02-20 17:24:43 +01:00
|
|
|
|
2022-02-16 23:32:31 +01:00
|
|
|
# Properties
|
2022-03-09 17:23:40 +01:00
|
|
|
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
2022-02-16 23:32:31 +01:00
|
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
2022-02-15 18:31:18 +01:00
|
|
|
|
2022-02-18 01:36:06 +01:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
|
|
|
|
|
2022-02-21 18:19:55 +01:00
|
|
|
# Security
|
2022-10-03 16:04:06 +02:00
|
|
|
VENDOR_SECURITY_PATCH := 2022-09-01
|
2022-02-21 18:19:55 +01:00
|
|
|
|
2022-02-15 18:31:18 +01:00
|
|
|
# inherit from the proprietary version
|
2022-08-07 19:14:21 -04:00
|
|
|
include vendor/motorola/berlin/BoardConfigVendor.mk
|