mirror of
https://github.com/Evolution-X-Devices/device_motorola_rtwo
synced 2026-01-27 18:07:35 +00:00
81 lines
2.9 KiB
Makefile
81 lines
2.9 KiB
Makefile
#
|
|
# 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.
|
|
#
|
|
|
|
DEVICE_PATH := device/motorola/eqs
|
|
|
|
# Inherit from motorola sm8475-common
|
|
include device/motorola/sm8475-common/BoardConfigCommon.mk
|
|
|
|
# Bootloader
|
|
TARGET_BOOTLOADER_BOARD_NAME := eqs
|
|
|
|
# Fingerprint
|
|
#TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.eqs
|
|
#SOONG_CONFIG_qtidisplay_udfps := true
|
|
|
|
# HIDL
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_eqs.xml
|
|
DEVICE_MANIFEST_CAPE_FILES += $(DEVICE_PATH)/manifest_eqs.xml
|
|
|
|
# Kernel
|
|
TARGET_KERNEL_CONFIG += vendor/lineage_eqs.config
|
|
|
|
TARGET_KERNEL_DIR := $(DEVICE_PATH)-kernel
|
|
|
|
KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR)/modules
|
|
TARGET_FORCE_PREBUILT_KERNEL := true
|
|
TARGET_PREBUILT_KERNEL := $(TARGET_KERNEL_DIR)/kernel
|
|
BOARD_PREBUILT_DTBOIMAGE := $(TARGET_KERNEL_DIR)/dtbo.img
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := $(TARGET_KERNEL_DIR)
|
|
|
|
# Kernel Modules
|
|
KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko)
|
|
|
|
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
|
|
BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist
|
|
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.vendor_boot))
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist.vendor_boot
|
|
|
|
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
|
|
|
|
BOARD_VENDOR_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_KERNEL_MODULES_LOAD)))
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD)))
|
|
|
|
# Partitions
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 228362006528
|
|
ifneq ($(WITH_GMS),true)
|
|
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 3318226944
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 873680896
|
|
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 916299776
|
|
endif
|
|
BOARD_MOT_DP_GROUP_SIZE := 11806965760 # ( BOARD_SUPER_PARTITION_SIZE - 4MB )
|
|
BOARD_SUPER_PARTITION_SIZE := 11811160064
|
|
|
|
# Properties
|
|
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
|
|
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
|
|
|
# Recovery
|
|
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 90
|
|
|
|
# Security
|
|
VENDOR_SECURITY_PATCH := 2022-09-01
|
|
|
|
# inherit from the proprietary version
|
|
include vendor/motorola/eqs/BoardConfigVendor.mk
|