laurel_sprout: Inherit from common tree

Change-Id: Icaf0e5cb7dbb8c75b81bf9008433ab51a9b34531
Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
This commit is contained in:
Sebastiano Barezzi
2020-10-23 09:35:08 +02:00
committed by Skyblueborb
commit 39a6409aeb
7 changed files with 118 additions and 0 deletions

8
AndroidProducts.mk Normal file
View File

@@ -0,0 +1,8 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_laurel_sprout.mk

19
BoardConfig.mk Normal file
View File

@@ -0,0 +1,19 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm6125-common
include device/xiaomi/sm6125-common/BoardConfigCommon.mk
DEVICE_PATH := device/xiaomi/laurel_sprout
# Display
TARGET_SCREEN_DENSITY := 320
# Kernel
TARGET_KERNEL_CONFIG := vendor/laurel_sprout-perf_defconfig
# Inherit from the proprietary version
include vendor/xiaomi/laurel_sprout/BoardConfigVendor.mk

24
device.mk Normal file
View File

@@ -0,0 +1,24 @@
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm6125-common
$(call inherit-product, device/xiaomi/sm6125-common/common.mk)
DEVICE_PATH := device/xiaomi/laurel_sprout
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# Boot animation
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 28
# Inherit from vendor blobs
$(call inherit-product, vendor/xiaomi/laurel_sprout/laurel_sprout-vendor.mk)

21
extract-files.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/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=laurel_sprout
export DEVICE_COMMON=sm6125-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

6
lineage.dependencies Normal file
View File

@@ -0,0 +1,6 @@
[
{
"repository": "android_device_xiaomi_sm6125-common",
"target_path": "device/xiaomi/sm6125-common"
}
]

25
lineage_laurel_sprout.mk Normal file
View File

@@ -0,0 +1,25 @@
#
# 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 laurel_sprout device
$(call inherit-product, device/xiaomi/laurel_sprout/device.mk)
PRODUCT_NAME := lineage_laurel_sprout
PRODUCT_DEVICE := laurel_sprout
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Mi A3
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
BUILD_FINGERPRINT := Xiaomi/laurel_sprout/laurel_sprout:11/RKQ1.200903.002/V12.0.26.0.RFQMIXM:user/release-keys

15
setup-makefiles.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/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=laurel_sprout
export DEVICE_COMMON=sm6125-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"