1#
2# Copyright (C) 2020 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17PRODUCT_USE_DYNAMIC_PARTITIONS := true
18
19# The system image of aosp_tv_arm-userdebug is a GSI for the devices with:
20# - ARM 32 bits user space
21# - 64 bits binder interface
22# - VNDK enforcement
23# - compatible property override enabled
24
25#
26# All components inherited here go to system image
27#
28$(call inherit-product, device/google/atv/products/atv_mainline_system.mk)
29
30# Enable mainline checking for excat this product name
31ifeq (aosp_tv_arm,$(TARGET_PRODUCT))
32PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
33endif
34
35#
36# All components inherited here go to system_ext image
37#
38$(call inherit-product, device/google/atv/products/atv_system_ext.mk)
39# Packages required for ATV GSI
40PRODUCT_PACKAGES += \
41    FrameworkPackageStubs \
42    TvProvision
43
44#
45# All components inherited here go to product image
46#
47$(call inherit-product, device/google/atv/products/atv_product.mk)
48# Packages required for ATV GSI
49PRODUCT_PACKAGES += \
50    LatinIMEGoogleTvPrebuilt \
51    TvSampleLeanbackLauncher
52
53#
54# All components inherited here go to vendor image
55#
56$(call inherit-product, device/google/atv/products/atv_emulator_vendor.mk)
57$(call inherit-product-if-exists, device/generic/goldfish/arm32-vendor.mk)
58$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86/device.mk)
59
60#
61# Special settings for GSI releasing
62#
63ifeq (aosp_tv_arm,$(TARGET_PRODUCT))
64$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
65endif
66
67PRODUCT_NAME := aosp_tv_arm
68PRODUCT_DEVICE := generic
69PRODUCT_BRAND := Android
70PRODUCT_MODEL := AOSP TV on ARM
71