commit 799abfe47abc6f2dd4ca79d46fe13dbb91edfc45 Author: AdarshGrewal Date: Fri Jul 9 23:04:30 2021 +0530 sweet: Initial device tree 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