From 6876f079d133b48c712dc9331966d6481cd48183 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 17 Jun 2021 00:43:04 -0400 Subject: [PATCH] dopinder: Initial Commit Change-Id: I5bbc92935d81897929edf3daefb27a9e09691f60 --- AndroidProducts.mk | 13 +++++++++++++ BoardConfig.mk | 12 ++++++++++++ device.mk | 11 +++++++++++ extract-files.sh | 22 ++++++++++++++++++++++ lineage.dependencies | 6 ++++++ lineage_dopinder.mk | 29 +++++++++++++++++++++++++++++ proprietary-files.txt | 1 + setup-makefiles.sh | 16 ++++++++++++++++ 8 files changed, 110 insertions(+) create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 lineage.dependencies create mode 100644 lineage_dopinder.mk create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..d42398a --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_dopinder.mk + +COMMON_LUNCH_CHOICES := \ + lineage_dopinder-eng \ + lineage_dopinder-user \ + lineage_dopinder-userdebug diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..405407d --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,12 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +include device/amlogic/g12-common/BoardConfigCommon.mk + +DEVICE_PATH := device/askey/dopinder + +## Bootloader +TARGET_BOOTLOADER_BOARD_NAME := sti6140d360 diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..d2aa422 --- /dev/null +++ b/device.mk @@ -0,0 +1,11 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +DEVICE_PATH := device/askey/dopinder + +$(call inherit-product, vendor/askey/dopinder/dopinder-vendor.mk) + +$(call inherit-product, device/amlogic/g12-common/g12.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..5bb0a4d --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2021 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=dopinder +export DEVICE_COMMON=g12-common +export VENDOR_COMMON=amlogic +export VENDOR_DEVICE=askey + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..257b036 --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_amlogic_g12-common", + "target_path": "device/amlogic/g12-common" + } +] diff --git a/lineage_dopinder.mk b/lineage_dopinder.mk new file mode 100644 index 0000000..95bcfd9 --- /dev/null +++ b/lineage_dopinder.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Inherit some common AOSP stuff +$(call inherit-product, device/google/atv/products/atv_base.mk) + +# Inherit some common Lineage stuff +$(call inherit-product, vendor/lineage/config/common_full_tv.mk) + +# Inherit device configuration +$(call inherit-product, $(LOCAL_PATH)/device.mk) + +## Device identifier. This must come after all inclusions +PRODUCT_BRAND := Onn +PRODUCT_DEVICE := dopinder +PRODUCT_GMS_CLIENTID_BASE := android-askey-tv +PRODUCT_MANUFACTURER := askey +PRODUCT_MODEL := sti6140d360 +PRODUCT_NAME := lineage_dopinder + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_DEVICE=sti6140d360 \ + PRODUCT_NAME=sti6140d360 \ + PRIVATE_BUILD_DESC="sti6140d360-user 10 QT 20210519 release-keys" + +BUILD_FINGERPRINT := Onn/sti6140d360/sti6140d360:10/QT/20210519:user/release-keys diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1 @@ + diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..e72d845 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2021 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -e + +export DEVICE=dopinder +export DEVICE_COMMON=g12-common +export VENDOR_COMMON=amlogic +export VENDOR_DEVICE=askey + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" -- 2.20.1