LG8n: Initial Skeleton Tree

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-08-29 09:45:20 +08:00
parent 266d147836
commit ded6d80c2d
9 changed files with 125 additions and 0 deletions

8
Android.bp Normal file
View file

@ -0,0 +1,8 @@
//
// Copyright (C) 2023 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
soong_namespace {
}

11
Android.mk Normal file
View file

@ -0,0 +1,11 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),LG8n)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

13
AndroidProducts.mk Normal file
View file

@ -0,0 +1,13 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_LG8n.mk
COMMON_LUNCH_CHOICES := \
lineage_LG8n-user \
lineage_LG8n-userdebug \
lineage_LG8n-eng

8
BoardConfig.mk Normal file
View file

@ -0,0 +1,8 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit the proprietary files
include vendor/tecno/LG8n/BoardConfigVendor.mk

17
device.mk Normal file
View file

@ -0,0 +1,17 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/tecno/LG8n
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 31
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Inherit the proprietary files
$(call inherit-product, vendor/tecno/LG8n/LG8n-vendor.mk)

22
extract-files.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=LG8n
export DEVICE_COMMON=pova4series-common
export VENDOR=tecno
export VENDOR_COMMON=tecno
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"

30
lineage_LG8n.mk Normal file
View file

@ -0,0 +1,30 @@
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from device makefile.
$(call inherit-product, device/tecno/LG8n/device.mk)
# Inherit some common LineageOS stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
BOARD_VENDOR := TECNO
PRODUCT_NAME := lineage_LG8n
PRODUCT_DEVICE := LG8n
PRODUCT_MANUFACTURER := TECNO
PRODUCT_BRAND := TECNO
PRODUCT_MODEL := TECNO LG8n
PRODUCT_GMS_CLIENTID_BASE := android-transsion
PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="sys_tssi_64_armv82_tecno-user 13 TP1A.220624.014 469345 release-keys" \
PRODUCT_NAME=LG8n-GL
BUILD_FINGERPRINT := TECNO/LG8n-GL/TECNO-LG8n:12/SP1A.210812.016/240531V1800:user/release-keys

0
proprietary-files.txt Normal file
View file

16
setup-makefiles.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
export DEVICE=LG8n
export DEVICE_COMMON=mt6789-common
export VENDOR=tecno
export VENDOR_COMMON=transsion
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"