From 2994b3a21b1f1db5ddb59511f80538aae884470d Mon Sep 17 00:00:00 2001 From: SahilSonar Date: Wed, 21 Jul 2021 12:28:12 +0200 Subject: [PATCH] alioth: Initial device tree Change-Id: I6e667c7ccd633593931e503cf10ca23ee9a8f713 --- Android.mk | 11 +++++++++++ AndroidProducts.mk | 13 +++++++++++++ BoardConfig.mk | 22 ++++++++++++++++++++++ board-info.txt | 1 + device.mk | 25 +++++++++++++++++++++++++ lineage.dependencies | 6 ++++++ lineage_alioth.mk | 28 ++++++++++++++++++++++++++++ 7 files changed, 106 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 board-info.txt create mode 100644 device.mk create mode 100644 lineage.dependencies create mode 100644 lineage_alioth.mk diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..7405e71 --- /dev/null +++ b/Android.mk @@ -0,0 +1,11 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),alioth) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..64475a7 --- /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_alioth.mk + +COMMON_LUNCH_CHOICES := \ + lineage_alioth-user \ + lineage_alioth-userdebug \ + lineage_alioth-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..2bc5d5c --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Inherit from sm8250-common +include device/xiaomi/sm8250-common/BoardConfigCommon.mk + +DEVICE_PATH := device/xiaomi/alioth + +# Board +TARGET_BOARD_INFO_FILE := $(DEVICE_PATH)/board-info.txt + +# Display +TARGET_SCREEN_DENSITY := 420 + +# Kernel +TARGET_KERNEL_CONFIG := vendor/alioth_defconfig + +# Inherit from the proprietary version +include vendor/xiaomi/alioth/BoardConfigVendor.mk diff --git a/board-info.txt b/board-info.txt new file mode 100644 index 0000000..b346d35 --- /dev/null +++ b/board-info.txt @@ -0,0 +1 @@ +require board=alioth|aliothin diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..e7387c0 --- /dev/null +++ b/device.mk @@ -0,0 +1,25 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Overlays +DEVICE_PACKAGE_OVERLAYS += \ + $(LOCAL_PATH)/overlay + +# Device uses high-density artwork where available +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xhdpi + +# Boot animation +TARGET_SCREEN_HEIGHT := 2400 +TARGET_SCREEN_WIDTH := 1080 + +PRODUCT_SHIPPING_API_LEVEL := 30 + +# Inherit from sm8250-common +$(call inherit-product, device/xiaomi/sm8250-common/kona.mk) + +# Inherit from vendor blobs +$(call inherit-product, vendor/xiaomi/alioth/alioth-vendor.mk) diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..6a730dc --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_xiaomi_sm8250-common", + "target_path": "device/xiaomi/sm8250-common" + } +] diff --git a/lineage_alioth.mk b/lineage_alioth.mk new file mode 100644 index 0000000..00e84b1 --- /dev/null +++ b/lineage_alioth.mk @@ -0,0 +1,28 @@ +# +# 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 some common lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +# Inherit from alioth device +$(call inherit-product, device/xiaomi/alioth/device.mk) + +PRODUCT_NAME := lineage_alioth +PRODUCT_DEVICE := alioth +PRODUCT_MANUFACTURER := Xiaomi +PRODUCT_BRAND := POCO +PRODUCT_MODEL := POCO F3 + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRIVATE_BUILD_DESC="alioth-user 11 RKQ1.200826.002 V12.5.2.0.RKHMIXM release-keys" + +BUILD_FINGERPRINT := POCO/alioth_global/alioth:11/RKQ1.200826.002/V12.5.2.0.RKHMIXM:user/release-keys