cupid: Initial device tree
Change-Id: Id01117ad481165bb7a87cf3d2b43c7d9a5fa6d45
This commit is contained in:
parent
276d7fc1de
commit
918fa12d96
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),cupid)
|
||||
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_cupid.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
lineage_cupid-user \
|
||||
lineage_cupid-userdebug \
|
||||
lineage_cupid-eng
|
13
BoardConfig.mk
Normal file
13
BoardConfig.mk
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Inherit from xiaomi sm8450-common
|
||||
include device/xiaomi/sm8450-common/BoardConfigCommon.mk
|
||||
|
||||
# Inherit from the proprietary version
|
||||
include vendor/xiaomi/cupid/BoardConfigVendor.mk
|
||||
|
||||
DEVICE_PATH := device/xiaomi/cupid
|
15
device.mk
Normal file
15
device.mk
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Inherit from xiaomi sm8450-common
|
||||
$(call inherit-product, device/xiaomi/sm8450-common/common.mk)
|
||||
|
||||
# Inherit from the proprietary version
|
||||
$(call inherit-product, vendor/xiaomi/cupid/cupid-vendor.mk)
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
26
extract-files.sh
Executable file
26
extract-files.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2016 The CyanogenMod Project
|
||||
# Copyright (C) 2017-2020 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
function blob_fixup() {
|
||||
case "${1}" in
|
||||
esac
|
||||
}
|
||||
|
||||
# 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=cupid
|
||||
export DEVICE_COMMON=sm8450-common
|
||||
export VENDOR=xiaomi
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
23
lineage_cupid.mk
Normal file
23
lineage_cupid.mk
Normal file
@ -0,0 +1,23 @@
|
||||
#
|
||||
# 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 from cupid device
|
||||
$(call inherit-product, device/xiaomi/cupid/device.mk)
|
||||
|
||||
# Inherit from common lineage configuration
|
||||
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
|
||||
|
||||
PRODUCT_NAME := lineage_cupid
|
||||
PRODUCT_DEVICE := cupid
|
||||
PRODUCT_MANUFACTURER := Xiaomi
|
||||
PRODUCT_BRAND := Xiaomi
|
||||
PRODUCT_MODEL := 2201123G
|
||||
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
|
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=cupid
|
||||
export DEVICE_COMMON=sm8450-common
|
||||
export VENDOR=xiaomi
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
Loading…
Reference in New Issue
Block a user