• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# This makefile is the basis of a generic system image for a TV device.
18$(call inherit-product, device/google/atv/products/atv_system.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
20# Add adb keys to debuggable AOSP builds (if they exist)
21$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk)
22
23# Enable updating of APEXes
24$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
25
26# OTA support
27PRODUCT_PACKAGES += \
28    recovery-refresh \
29    update_engine \
30    update_verifier \
31
32# Wrapped net utils for /vendor access.
33PRODUCT_PACKAGES += netutils-wrapper-1.0
34
35# system_other support
36PRODUCT_PACKAGES += \
37    cppreopts.sh \
38    otapreopt_script
39
40# System libraries commonly depended on by things on the system_ext or product partitions.
41# These lists will be pruned periodically.
42PRODUCT_PACKAGES += \
43    android.hardware.wifi@1.0 \
44    libaudio-resampler \
45    libaudiohal \
46    libdrm \
47    liblogwrap \
48    liblz4 \
49    libminui \
50    libnl \
51    libprotobuf-cpp-full
52
53# These libraries are empty and have been combined into libhidlbase, but are still depended
54# on by things off /system.
55# TODO(b/135686713): remove these
56PRODUCT_PACKAGES += \
57    libhidltransport \
58    libhwbinder
59
60PRODUCT_PACKAGES_DEBUG += \
61    avbctl \
62    bootctl \
63    tinyplay \
64    tinycap \
65    tinymix \
66    tinypcminfo \
67    update_engine_client
68
69PRODUCT_HOST_PACKAGES += \
70    tinyplay
71
72# Enable configurable audio policy
73PRODUCT_PACKAGES += \
74    libaudiopolicyengineconfigurable \
75    libpolicy-subsystem
76
77# Include all zygote init scripts. "ro.zygote" will select one of them.
78PRODUCT_COPY_FILES += \
79    system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \
80    system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \
81    system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc
82
83# Enable dynamic partition size
84PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
85
86PRODUCT_ENFORCE_RRO_TARGETS := *
87
88PRODUCT_NAME := atv_generic_system
89PRODUCT_BRAND := generic
90
91# Define /system partition-specific product properties to identify that /system
92# partition is atv_generic_system.
93PRODUCT_SYSTEM_NAME := atv_generic
94PRODUCT_SYSTEM_BRAND := Android
95PRODUCT_SYSTEM_MANUFACTURER := Android
96PRODUCT_SYSTEM_MODEL := atv_generic
97PRODUCT_SYSTEM_DEVICE := generic
98
99_base_mk_whitelist :=
100
101_my_whitelist := $(_base_mk_whitelist)
102
103# For mainline, system.img should be mounted at /, so we include ROOT here.
104_my_paths := \
105  $(TARGET_COPY_OUT_ROOT)/ \
106  $(TARGET_COPY_OUT_SYSTEM)/ \
107
108$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))
109