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_arm64-userdebug is a GSI for the devices with: 24# - ARM 64 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, $(SRC_TARGET_DIR)/product/core_64_bit.mk) 33$(call inherit-product, device/google/atv/products/atv_generic_system.mk) 34 35# Enable mainline checking for excat this product name 36ifeq (aosp_tv_arm64,$(TARGET_PRODUCT)) 37PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed 38endif 39 40# 41# All components inherited here go to system_ext image 42# 43$(call inherit-product, device/google/atv/products/atv_system_ext.mk) 44# Packages required for ATV GSI 45PRODUCT_PACKAGES += \ 46 TvProvision 47 48# 49# All components inherited here go to product image 50# 51$(call inherit-product, device/google/atv/products/atv_product.mk) 52# Default sound experience 53$(call inherit-product-if-exists, frameworks/base/data/sounds/AudioTv.mk) 54# Packages required for ATV GSI 55PRODUCT_PACKAGES += \ 56 LeanbackIME \ 57 TvSampleLeanbackLauncher 58 59# 60# All components inherited here go to vendor image 61# 62$(call inherit-product, device/google/atv/products/atv_emulator_vendor.mk) 63$(call inherit-product, device/generic/goldfish/board/emu64a/details.mk) 64$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk) 65 66# 67# Special settings for GSI releasing 68# 69ifeq (aosp_tv_arm64,$(TARGET_PRODUCT)) 70$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) 71PRODUCT_BUILD_SYSTEM_IMAGE := true 72PRODUCT_BUILD_SYSTEM_OTHER_IMAGE := false 73PRODUCT_BUILD_VENDOR_IMAGE := false 74PRODUCT_BUILD_PRODUCT_IMAGE := false 75PRODUCT_BUILD_PRODUCT_SERVICES_IMAGE := false 76PRODUCT_BUILD_ODM_IMAGE := false 77PRODUCT_BUILD_CACHE_IMAGE := false 78PRODUCT_BUILD_RAMDISK_IMAGE := true 79PRODUCT_BUILD_USERDATA_IMAGE := false 80PRODUCT_BUILD_BOOT_IMAGE := false 81PRODUCT_BUILD_DEBUG_BOOT_IMAGE := false 82PRODUCT_BUILD_VENDOR_BOOT_IMAGE := false 83PRODUCT_BUILD_DEBUG_VENDOR_BOOT_IMAGE := false 84AB_OTA_UPDATER := true 85AB_OTA_PARTITIONS ?= system 86endif 87 88PRODUCT_NAME := aosp_tv_arm64 89PRODUCT_DEVICE := generic_arm64 90PRODUCT_BRAND := Android 91PRODUCT_MODEL := AOSP TV on ARM64 92