From ded6d80c2d16b14b36d6360c5777b1c3cb10d20a Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Thu, 29 Aug 2024 09:45:20 +0800 Subject: [PATCH] LG8n: Initial Skeleton Tree Signed-off-by: Shirayuki39 --- Android.bp | 8 ++++++++ Android.mk | 11 +++++++++++ AndroidProducts.mk | 13 +++++++++++++ BoardConfig.mk | 8 ++++++++ device.mk | 17 +++++++++++++++++ extract-files.sh | 22 ++++++++++++++++++++++ lineage_LG8n.mk | 30 ++++++++++++++++++++++++++++++ proprietary-files.txt | 0 setup-makefiles.sh | 16 ++++++++++++++++ 9 files changed, 125 insertions(+) create mode 100644 Android.bp create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 lineage_LG8n.mk create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..5eb082c --- /dev/null +++ b/Android.bp @@ -0,0 +1,8 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +soong_namespace { +} diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..b922ac9 --- /dev/null +++ b/Android.mk @@ -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 diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..de93db8 --- /dev/null +++ b/AndroidProducts.mk @@ -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 diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..c390c19 --- /dev/null +++ b/BoardConfig.mk @@ -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 diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..6ea7980 --- /dev/null +++ b/device.mk @@ -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) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..a95e095 --- /dev/null +++ b/extract-files.sh @@ -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" "$@" diff --git a/lineage_LG8n.mk b/lineage_LG8n.mk new file mode 100644 index 0000000..3b4e44a --- /dev/null +++ b/lineage_LG8n.mk @@ -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 diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..df001e2 --- /dev/null +++ b/setup-makefiles.sh @@ -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" "$@"