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# The system image of aosp_tv_arm64-userdebug is a GSI for the devices with:
18# - ARM 64 bits user space
19# - 64 bits binder interface
20# - VNDK enforcement
21# - compatible property override enabled
22
23#
24# All components inherited here go to system image
25#
26$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
27$(call inherit-product, device/google/atv/products/atv_mainline_system.mk)
28
29# Enable mainline checking for excat this product name
30ifeq (aosp_tv_arm64,$(TARGET_PRODUCT))
31PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
32endif
33
34#
35# All components inherited here go to system_ext image
36#
37$(call inherit-product, device/google/atv/products/atv_system_ext.mk)
38# Packages required for ATV GSI
39PRODUCT_PACKAGES += \
40    FrameworkPackageStubs \
41    TvProvision
42
43#
44# All components inherited here go to product image
45#
46$(call inherit-product, device/google/atv/products/atv_product.mk)
47# Packages required for ATV GSI
48PRODUCT_PACKAGES += \
49    LatinIMEGoogleTvPrebuilt \
50    TvSampleLeanbackLauncher
51
52#
53# All components inherited here go to vendor image
54#
55$(call inherit-product, device/google/atv/products/atv_emulator_vendor.mk)
56$(call inherit-product-if-exists, device/generic/goldfish/arm64-vendor.mk)
57$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk)
58
59ifeq (aosp_tv_arm64,$(TARGET_PRODUCT))
60$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
61endif
62
63PRODUCT_NAME := aosp_tv_arm64
64PRODUCT_DEVICE := generic_arm64
65PRODUCT_BRAND := Android
66PRODUCT_MODEL := AOSP TV on ARM64
67