2022-02-15 08:01:08 -05: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.
|
|
|
|
#
|
|
|
|
|
2024-07-03 03:26:42 -04:00
|
|
|
DEVICE_PATH := device/motorola/bangkk
|
2022-02-16 17:32:31 -05:00
|
|
|
|
2024-07-03 03:26:42 -04:00
|
|
|
# Inherit from motorola sm6375-common
|
|
|
|
include device/motorola/sm6375-common/BoardConfigCommon.mk
|
2022-02-15 08:01:08 -05:00
|
|
|
|
2022-03-09 11:23:40 -05:00
|
|
|
# Bootloader
|
2024-07-03 03:26:42 -04:00
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := bangkk
|
2022-03-09 11:23:40 -05:00
|
|
|
|
2022-02-10 15:04:32 -05:00
|
|
|
# Fingerprint
|
2024-07-03 03:26:42 -04:00
|
|
|
TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.bangkk
|
2022-09-19 05:06:50 -04:00
|
|
|
SOONG_CONFIG_qtidisplay_udfps := true
|
2022-02-10 15:04:32 -05:00
|
|
|
|
2022-03-06 17:03:33 -05:00
|
|
|
# HIDL
|
2024-07-03 03:26:42 -04:00
|
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_bangkk.xml
|
|
|
|
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest_bangkk.xml
|
2022-03-06 17:03:33 -05:00
|
|
|
|
2022-02-17 06:06:58 -05:00
|
|
|
# Kernel
|
2024-07-03 03:26:42 -04:00
|
|
|
BOARD_KERNEL_CMDLINE += androidboot.hab.product=bangkk
|
|
|
|
TARGET_KERNEL_CONFIG += vendor/bangkk_defconfig
|
2022-02-17 06:06:58 -05:00
|
|
|
|
2022-03-25 15:58:27 -04:00
|
|
|
# Kernel Modules
|
2022-04-04 16:23:30 -04:00
|
|
|
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
|
2022-07-29 07:52:02 -04:00
|
|
|
BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist
|
2022-03-25 15:58:27 -04: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 08:01:08 -05:00
|
|
|
# Partitions
|
2024-07-03 03:26:42 -04:00
|
|
|
BOARD_MOT_DP_GROUP_SIZE := 6706692096 # (BOARD_SUPER_PARTITION_SIZE - 4MB)
|
|
|
|
BOARD_SUPER_PARTITION_SIZE := 6710886400
|
2022-02-15 12:31:18 -05:00
|
|
|
|
2022-02-16 17:32:31 -05:00
|
|
|
# Properties
|
2022-03-09 11:23:40 -05:00
|
|
|
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
2022-02-16 17:32:31 -05:00
|
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
2022-02-15 12:31:18 -05:00
|
|
|
|
2022-02-17 19:36:06 -05:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
|
|
|
|
|
2024-07-03 03:26:42 -04:00
|
|
|
# Security patch level
|
2024-06-10 01:23:17 -04:00
|
|
|
VENDOR_SECURITY_PATCH := 2024-05-01
|
2022-02-21 12:19:55 -05:00
|
|
|
|
2022-02-15 12:31:18 -05:00
|
|
|
# inherit from the proprietary version
|
2024-07-03 03:26:42 -04:00
|
|
|
include vendor/motorola/bangkk/BoardConfigVendor.mk
|