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
17# Generate source.properties for image target
18PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP := \
19    device/google/atv/sdk/images_source.prop_template
20
21PRODUCT_USE_DYNAMIC_PARTITIONS := true
22
23# The system image of aosp_tv_x86-userdebug is a GSI for the devices with:
24# - x86 32 bits user space
25# - 64 bits binder interface
26# - VNDK enforcement
27# - compatible property override enabled
28
29#
30# All components inherited here go to system image
31#
32$(call inherit-product, device/google/atv/products/atv_generic_system.mk)
33
34# Enable mainline checking for excat this product name
35ifeq (aosp_tv_x86,$(TARGET_PRODUCT))
36PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
37endif
38
39#
40# All components inherited here go to system_ext image
41#
42$(call inherit-product, device/google/atv/products/atv_system_ext.mk)
43# Packages required for ATV GSI
44PRODUCT_PACKAGES += \
45    TvProvision
46
47#
48# All components inherited here go to product image
49#
50$(call inherit-product, device/google/atv/products/atv_product.mk)
51# Default sound experience
52$(call inherit-product-if-exists, frameworks/base/data/sounds/AudioTv.mk)
53# Packages required for ATV GSI
54ifeq (aosp_tv_x86,$(TARGET_PRODUCT))
55PRODUCT_PACKAGES += \
56    LeanbackIME \
57    TvSampleLeanbackLauncher
58endif
59
60#
61# All components inherited here go to vendor image
62#
63$(call inherit-product, device/google/atv/products/atv_emulator_vendor.mk)
64$(call inherit-product, device/generic/goldfish/board/emu64x/kernel_fstab_32.mk)
65$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_x86/device.mk)
66
67ifeq (aosp_tv_x86,$(TARGET_PRODUCT))
68$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
69endif
70
71PRODUCT_NAME := aosp_tv_x86
72PRODUCT_DEVICE := generic_x86
73PRODUCT_BRAND := Android
74PRODUCT_MODEL := AOSP TV on x86
75