From 799abfe47abc6f2dd4ca79d46fe13dbb91edfc45 Mon Sep 17 00:00:00 2001 From: AdarshGrewal Date: Fri, 9 Jul 2021 23:04:30 +0530 Subject: [PATCH] sweet: Initial device tree --- Android.mk | 13 +++++++++++++ AndroidProducts.mk | 13 +++++++++++++ BoardConfig.mk | 7 +++++++ device.mk | 5 +++++ lineage_sweet.mk | 23 +++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 device.mk create mode 100644 lineage_sweet.mk diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..919ea8c --- /dev/null +++ b/Android.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),sweet) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..f9923a2 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_sweet.mk + +COMMON_LUNCH_CHOICES := \ + lineage_sweet-user \ + lineage_sweet-userdebug \ + lineage_sweet-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..1ac84fc --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,7 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +DEVICE_PATH := device/xiaomi/sweet diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..ebb837e --- /dev/null +++ b/device.mk @@ -0,0 +1,5 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# diff --git a/lineage_sweet.mk b/lineage_sweet.mk new file mode 100644 index 0000000..2943353 --- /dev/null +++ b/lineage_sweet.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2021 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 sweet device +$(call inherit-product, device/xiaomi/sweet/device.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_sweet +PRODUCT_DEVICE := sweet +PRODUCT_BRAND := Xiaomi +PRODUCT_MODEL := Redmi Note 10 Pro +PRODUCT_MANUFACTURER := Xiaomi + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi