diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..75127b8 --- /dev/null +++ b/Android.bp @@ -0,0 +1,8 @@ +// +// Copyright (C) 2022-2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +soong_namespace { +} diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..21429c1 --- /dev/null +++ b/Android.mk @@ -0,0 +1,11 @@ +# +# Copyright (C) 2022-2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),zeus) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..7fbe16b --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2022-2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_zeus.mk + +COMMON_LUNCH_CHOICES := \ + lineage_zeus-user \ + lineage_zeus-userdebug \ + lineage_zeus-eng diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..a7cf0f0 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2022-2023 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/zeus/BoardConfigVendor.mk + +DEVICE_PATH := device/xiaomi/zeus diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..812d7f5 --- /dev/null +++ b/device.mk @@ -0,0 +1,15 @@ +# +# Copyright (C) 2022-2023 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/zeus/zeus-vendor.mk) + +# Soong namespaces +PRODUCT_SOONG_NAMESPACES += \ + $(LOCAL_PATH) diff --git a/extract-files.sh b/extract-files.sh new file mode 100644 index 0000000..1587c90 --- /dev/null +++ b/extract-files.sh @@ -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=zeus +export DEVICE_COMMON=sm8450-common +export VENDOR=xiaomi + +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/lineage_zeus.mk b/lineage_zeus.mk new file mode 100644 index 0000000..7d109df --- /dev/null +++ b/lineage_zeus.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2022-2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Inherit from zeus device +$(call inherit-product, device/xiaomi/zeus/device.mk) + +# Inherit from common lineage configuration +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_zeus +PRODUCT_DEVICE := zeus +PRODUCT_MANUFACTURER := Xiaomi +PRODUCT_BRAND := Xiaomi +PRODUCT_MODEL := 2201122G + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100644 index 0000000..d672e90 --- /dev/null +++ b/setup-makefiles.sh @@ -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=zeus +export DEVICE_COMMON=sm8450-common +export VENDOR=xiaomi + +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"