grus: Inherit from common tree

Change-Id: I220ee1325e07700386f1a436fca0004df3ad193a
This commit is contained in:
Sebastiano Barezzi 2022-02-09 18:58:11 +01:00
commit cd95b56ed2
No known key found for this signature in database
GPG Key ID: 47760583F393BC44
8 changed files with 141 additions and 0 deletions

8
Android.bp Normal file
View File

@ -0,0 +1,8 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
soong_namespace {
}

11
Android.mk Normal file
View File

@ -0,0 +1,11 @@
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),grus)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif

13
AndroidProducts.mk Normal file
View File

@ -0,0 +1,13 @@
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_grus.mk
COMMON_LUNCH_CHOICES := \
lineage_grus-user \
lineage_grus-userdebug \
lineage_grus-eng

19
BoardConfig.mk Normal file
View File

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

26
device.mk Normal file
View File

@ -0,0 +1,26 @@
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sdm710-common
$(call inherit-product, device/xiaomi/sdm710-common/sdm710.mk)
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# Boot animation
TARGET_SCREEN_HEIGHT := 2340
TARGET_SCREEN_WIDTH := 1080
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 28
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/grus/grus-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=grus
export DEVICE_COMMON=sdm710-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

28
lineage_grus.mk Normal file
View File

@ -0,0 +1,28 @@
#
# Copyright (C) 2022 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 grus device
$(call inherit-product, device/xiaomi/grus/device.mk)
PRODUCT_NAME := lineage_grus
PRODUCT_DEVICE := grus
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Mi 9 SE
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="grus-user 11 RKQ1.200826.002 V12.5.1.0.RFBMIXM release-keys"
BUILD_FINGERPRINT := Xiaomi/grus/grus:11/RKQ1.200826.002/V12.5.1.0.RFBMIXM: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=grus
export DEVICE_COMMON=sdm710-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"