From c2d63c642e38b74a8559f0eebf7ae28f631b83bf Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Tue, 8 Dec 2020 16:31:31 -0500 Subject: [PATCH] lineage: targets: Add support for ATV GSI builds Change-Id: I1faf83e21af5db1b29b98af72a4f74666c05f775 --- build/target/product/AndroidProducts.mk | 14 +++++++--- .../product/lineage_generic_tv_target.mk | 23 ++++++++++++++++ build/target/product/lineage_tv_arm.mk | 24 +++++++++++++++++ build/target/product/lineage_tv_arm64.mk | 23 ++++++++++++++++ build/target/product/lineage_tv_x86.mk | 26 +++++++++++++++++++ build/target/product/lineage_tv_x86_64.mk | 24 +++++++++++++++++ 6 files changed, 131 insertions(+), 3 deletions(-) create mode 100644 build/target/product/lineage_generic_tv_target.mk create mode 100644 build/target/product/lineage_tv_arm.mk create mode 100644 build/target/product/lineage_tv_arm64.mk create mode 100644 build/target/product/lineage_tv_x86.mk create mode 100644 build/target/product/lineage_tv_x86_64.mk diff --git a/build/target/product/AndroidProducts.mk b/build/target/product/AndroidProducts.mk index 6fb1a041..c3c1b00a 100644 --- a/build/target/product/AndroidProducts.mk +++ b/build/target/product/AndroidProducts.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2018-2019 The LineageOS Project +# Copyright (C) 2018-2020 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,10 +18,18 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/lineage_arm.mk \ $(LOCAL_DIR)/lineage_arm64.mk \ $(LOCAL_DIR)/lineage_x86.mk \ - $(LOCAL_DIR)/lineage_x86_64.mk + $(LOCAL_DIR)/lineage_x86_64.mk \ + $(LOCAL_DIR)/lineage_tv_arm.mk \ + $(LOCAL_DIR)/lineage_tv_arm64.mk \ + $(LOCAL_DIR)/lineage_tv_x86.mk \ + $(LOCAL_DIR)/lineage_tv_x86_64.mk COMMON_LUNCH_CHOICES := \ lineage_arm-userdebug \ lineage_arm64-userdebug \ lineage_x86-userdebug \ - lineage_x86_64-userdebug + lineage_x86_64-userdebug \ + lineage_tv_arm-userdebug \ + lineage_tv_arm64-userdebug \ + lineage_tv_x86-userdebug \ + lineage_tv_x86_64-userdebug diff --git a/build/target/product/lineage_generic_tv_target.mk b/build/target/product/lineage_generic_tv_target.mk new file mode 100644 index 00000000..1a6d791a --- /dev/null +++ b/build/target/product/lineage_generic_tv_target.mk @@ -0,0 +1,23 @@ +# Copyright (C) 2019-2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, build/target/product/gsi_release.mk) +$(call inherit-product, device/google/atv/products/atv_base.mk) +$(call inherit-product, vendor/lineage/config/common_full_tv.mk) + +PRODUCT_COPY_FILES += \ + device/generic/goldfish/data/etc/permissions/privapp-permissions-goldfish.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-goldfish.xml \ + +# Allow building otatools +TARGET_FORCE_OTA_PACKAGE := true diff --git a/build/target/product/lineage_tv_arm.mk b/build/target/product/lineage_tv_arm.mk new file mode 100644 index 00000000..1ad99180 --- /dev/null +++ b/build/target/product/lineage_tv_arm.mk @@ -0,0 +1,24 @@ +# Copyright (C) 2018-2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, device/google/atv/products/aosp_tv_arm.mk) + +include vendor/lineage/build/target/product/lineage_generic_tv_target.mk + +TARGET_NO_KERNEL_OVERRIDE := true +TARGET_USES_64_BIT_BINDER := true + +PRODUCT_NAME := lineage_tv_arm + +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := diff --git a/build/target/product/lineage_tv_arm64.mk b/build/target/product/lineage_tv_arm64.mk new file mode 100644 index 00000000..87df08f9 --- /dev/null +++ b/build/target/product/lineage_tv_arm64.mk @@ -0,0 +1,23 @@ +# Copyright (C) 2018-2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, device/google/atv/products/aosp_tv_arm64.mk) + +include vendor/lineage/build/target/product/lineage_generic_tv_target.mk + +TARGET_NO_KERNEL_OVERRIDE := true + +PRODUCT_NAME := lineage_tv_arm64 + +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := diff --git a/build/target/product/lineage_tv_x86.mk b/build/target/product/lineage_tv_x86.mk new file mode 100644 index 00000000..f38734a3 --- /dev/null +++ b/build/target/product/lineage_tv_x86.mk @@ -0,0 +1,26 @@ +# Copyright (C) 2018-2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, device/google/atv/products/aosp_tv_x86.mk) + +include vendor/lineage/build/target/product/lineage_generic_tv_target.mk + +TARGET_USES_64_BIT_BINDER := true + +PRODUCT_NAME := lineage_tv_x86 + +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := + +PRODUCT_SDK_ADDON_NAME := lineage +PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP := $(LOCAL_PATH)/source.properties diff --git a/build/target/product/lineage_tv_x86_64.mk b/build/target/product/lineage_tv_x86_64.mk new file mode 100644 index 00000000..b9b270a3 --- /dev/null +++ b/build/target/product/lineage_tv_x86_64.mk @@ -0,0 +1,24 @@ +# Copyright (C) 2018-2020 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, device/google/atv/products/aosp_tv_x86_64.mk) + +include vendor/lineage/build/target/product/lineage_generic_tv_target.mk + +PRODUCT_NAME := lineage_tv_x86_64 + +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := + +PRODUCT_SDK_ADDON_NAME := lineage +PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP := $(LOCAL_PATH)/source.properties