2024-08-28 18:45:20 -07:00
|
|
|
#
|
|
|
|
# Copyright (C) 2023 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2024-08-28 18:59:00 -07:00
|
|
|
# Include the common OEM chipset BoardConfig.
|
2024-09-04 08:54:45 -07:00
|
|
|
include device/tecno/mt6789-common/BoardConfigCommon.mk
|
2024-08-28 18:59:00 -07:00
|
|
|
|
2024-08-29 01:01:32 -07:00
|
|
|
# Bootloader
|
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := lg8n
|
|
|
|
|
2024-08-28 19:01:53 -07:00
|
|
|
# Boot image
|
|
|
|
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
|
|
|
|
|
2024-08-28 19:09:04 -07:00
|
|
|
# Display
|
|
|
|
TARGET_SCREEN_DENSITY := 396
|
|
|
|
|
2024-08-28 19:01:53 -07:00
|
|
|
# DTB
|
|
|
|
BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img
|
|
|
|
BOARD_PREBUILT_DTBIMAGE_DIR := $(KERNEL_PATH)/dtb
|
|
|
|
|
|
|
|
# Kernel
|
|
|
|
TARGET_NO_KERNEL_OVERRIDE := true
|
|
|
|
LOCAL_KERNEL := $(KERNEL_PATH)/Image.gz
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_KERNEL):kernel
|
|
|
|
|
2024-08-28 19:04:17 -07:00
|
|
|
# Kernel modules
|
|
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_PATH)/ramdisk/modules.load))
|
|
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(addprefix $(KERNEL_PATH)/ramdisk/, $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD))
|
|
|
|
|
|
|
|
# Also add recovery modules to vendor ramdisk
|
|
|
|
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_PATH)/ramdisk/modules.load.recovery))
|
|
|
|
RECOVERY_MODULES := $(addprefix $(KERNEL_PATH)/ramdisk/, $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD))
|
|
|
|
|
2024-08-28 19:05:30 -07:00
|
|
|
# Prevent duplicated entries (to solve duplicated build rules problem)
|
|
|
|
BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(sort $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES) $(RECOVERY_MODULES))
|
|
|
|
|
|
|
|
# Vendor modules (installed to vendor_dlkm)
|
|
|
|
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(KERNEL_PATH)/vendor_dlkm/modules.load))
|
|
|
|
BOARD_VENDOR_KERNEL_MODULES := $(wildcard $(KERNEL_PATH)/vendor_dlkm/*.ko)
|
|
|
|
|
2024-08-29 01:17:48 -07:00
|
|
|
# OTA assert
|
|
|
|
TARGET_OTA_ASSERT_DEVICE := LG8n,TECNO-LG8n,lg8n
|
|
|
|
|
2024-08-28 19:06:39 -07:00
|
|
|
# Workaround to make lineage's soong generator work
|
|
|
|
TARGET_KERNEL_SOURCE := $(KERNEL_PATH)/kernel-headers
|
|
|
|
|
2024-08-28 18:45:20 -07:00
|
|
|
# Inherit the proprietary files
|
|
|
|
include vendor/tecno/LG8n/BoardConfigVendor.mk
|