mirror of
https://github.com/LineageOS/android_device_xiaomi_grus.git
synced 2024-11-24 10:35:42 +00:00
grus: Inherit from common tree
Change-Id: I220ee1325e07700386f1a436fca0004df3ad193a
This commit is contained in:
commit
cd95b56ed2
8
Android.bp
Normal file
8
Android.bp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2022 The LineageOS Project
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
soong_namespace {
|
||||||
|
}
|
11
Android.mk
Normal file
11
Android.mk
Normal 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
13
AndroidProducts.mk
Normal 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
19
BoardConfig.mk
Normal 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
26
device.mk
Normal 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
21
extract-files.sh
Executable 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
28
lineage_grus.mk
Normal 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
15
setup-makefiles.sh
Executable 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" "$@"
|
Loading…
Reference in New Issue
Block a user