lineage: targets: Add support for ATV GSI builds

Change-Id: I1faf83e21af5db1b29b98af72a4f74666c05f775
This commit is contained in:
Nolen Johnson
2020-12-08 16:31:31 -05:00
committed by Rashed Abdel-Tawab
parent c3710badd7
commit c2d63c642e
6 changed files with 131 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 :=

View File

@@ -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 :=

View File

@@ -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

View File

@@ -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