From 0e484fe900f7a485aa6ab5e5b04d281c6d2eee41 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 17 Jun 2021 00:43:04 -0400 Subject: [PATCH 1/1] beast: Initial Commit Change-Id: I5bbc92935d81897929edf3daefb27a9e09691f60 --- AndroidProducts.mk | 13 +++++++++++++ BoardConfig.mk | 12 ++++++++++++ device.mk | 14 ++++++++++++++ extract-files.sh | 22 ++++++++++++++++++++++ lineage.dependencies | 6 ++++++ lineage_beast.mk | 28 ++++++++++++++++++++++++++++ proprietary-files.txt | 5 +++++ setup-makefiles.sh | 16 ++++++++++++++++ 8 files changed, 116 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_beast.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..f936d59 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,13 @@ +# +# Copyright (C) 2022 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_beast.mk + +COMMON_LUNCH_CHOICES := \ + lineage_beast-eng \ + lineage_beast-user \ + lineage_beast-userdebug diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..b135df7 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,12 @@ +# +# Copyright (C) 2022 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +include device/amlogic/gx-common/BoardConfigCommon.mk + +DEVICE_PATH := device/google/beast + +## Bootloader +TARGET_BOOTLOADER_BOARD_NAME := Beast diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..04396a1 --- /dev/null +++ b/device.mk @@ -0,0 +1,14 @@ +# +# Copyright (C) 2022 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +DEVICE_PATH := device/google/beast + +$(call inherit-product, vendor/google/beast/beast-vendor.mk) + +$(call inherit-product, device/amlogic/gx-common/gx.mk) + +## Platform +TARGET_AMLOGIC_SOC := gxl diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..c4e00e0 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# +# Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017-2022 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=beast +export DEVICE_COMMON=gx-common +export VENDOR_COMMON=amlogic +export VENDOR_DEVICE=google + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..6b0d65b --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_amlogic_gx-common", + "target_path": "device/amlogic/gx-common" + } +] diff --git a/lineage_beast.mk b/lineage_beast.mk new file mode 100644 index 0000000..e704684 --- /dev/null +++ b/lineage_beast.mk @@ -0,0 +1,28 @@ +# +# Copyright (C) 2022 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 := google +PRODUCT_DEVICE := beast +PRODUCT_GMS_CLIENTID_BASE := android-google-tv +PRODUCT_MANUFACTURER := Google +PRODUCT_MODEL := ADT-2 +PRODUCT_NAME := lineage_beast + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=adt2 \ + PRIVATE_BUILD_DESC="adt2-user 9 PTT5.190307.001 5360859 dev-keys" + +BUILD_FINGERPRINT := google/adt2/adt2:9/PTT5.190307.001/5360859:user/dev-keys diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..97c70f4 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1,5 @@ +### All blobs from this list, unless pinned and noted as otherwise, +## are from adt2-user 9 PTT5.190307.001 5360859 dev-keys. + +## DRM +vendor/lib/liboemcrypto.so diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..4bd147d --- /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=beast +export DEVICE_COMMON=gx-common +export VENDOR_COMMON=amlogic +export VENDOR_DEVICE=google + +"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" -- 2.20.1