• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018-2019 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# This file contains the definitions needed for a _really_ minimal system
17# image to be run under emulation under upstream QEMU (www.qemu.org), once
18# it supports a few Android virtual devices. Note that this is _not_ the
19# same as running under the Android emulator.
20
21PRODUCT_SOONG_NAMESPACES += device/generic/goldfish
22
23PRODUCT_PACKAGES += \
24    com.android.adbd \
25    adbd_system_api \
26    android.hardware.confirmationui@1.0-service.trusty \
27    android.hidl.allocator@1.0-service \
28    android.system.suspend@1.0-service \
29    apexd \
30    com.android.art \
31    com.android.i18n \
32    com.android.runtime \
33    dhcpclient \
34    gatekeeperd \
35    hwservicemanager \
36    init_system \
37    init_vendor \
38    init.environ.rc \
39    keymaster_soft_wrapped_attestation_keys.xml \
40    libandroid_servers \
41    libc.bootstrap \
42    libdl.bootstrap \
43    libdl_android.bootstrap \
44    libm.bootstrap \
45    linker \
46    linker64 \
47    linkerconfig \
48    logcat \
49    logd \
50    logwrapper \
51    mediaserver \
52    mdnsd \
53    reboot \
54    securedpud \
55    servicemanager \
56    sh \
57    su \
58    toolbox \
59    toybox \
60    vndservicemanager \
61    vold \
62
63# VINTF stuff for system and vendor (no product / odm / system_ext / etc.)
64PRODUCT_PACKAGES += \
65    system_compatibility_matrix.xml \
66    system_manifest.xml \
67    vendor_compatibility_matrix.xml \
68    vendor_manifest.xml \
69
70# Devices that inherit from build/make/target/product/base.mk always have
71# /system/system_ext/etc/vintf/manifest.xml generated. And build-time VINTF
72# checks assume that. Since we don't inherit from base.mk, add the dependency
73# here manually.
74PRODUCT_PACKAGES += \
75    system_ext_manifest.xml \
76
77# Skip VINTF checks for kernel configs
78PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
79
80# Ensure boringssl NIAP check won't reboot us
81PRODUCT_PACKAGES += \
82    com.android.conscrypt \
83    boringssl_self_test \
84
85# SELinux packages are added as dependencies of the selinux_policy
86# phony package.
87PRODUCT_PACKAGES += \
88    selinux_policy \
89
90PRODUCT_HOST_PACKAGES += \
91    adb \
92    e2fsdroid \
93    make_f2fs \
94    mdnsd \
95    mke2fs \
96    sload_f2fs \
97    toybox \
98
99PRODUCT_COPY_FILES += \
100    system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \
101    system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \
102    system/core/rootdir/etc/hosts:system/etc/hosts \
103
104PRODUCT_FULL_TREBLE_OVERRIDE := true
105
106PRODUCT_COPY_FILES += \
107    device/generic/trusty/fstab.ranchu:root/fstab.qemu_trusty \
108    device/generic/trusty/init.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qemu_trusty.rc \
109    device/generic/trusty/ueventd.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \
110
111PRODUCT_COPY_FILES += \
112    device/generic/goldfish/data/etc/config.ini:config.ini \
113    device/generic/trusty/advancedFeatures.ini:advancedFeatures.ini \
114
115# for Trusty
116$(call inherit-product, system/core/trusty/trusty-base.mk)
117$(call inherit-product, system/core/trusty/trusty-storage.mk)
118$(call inherit-product, system/core/trusty/trusty-test.mk)
119
120# Test Utilities
121PRODUCT_PACKAGES += \
122    tipc-test \
123    libtrusty_metrics_test \
124    trusty-ut-ctrl \
125    VtsHalConfirmationUIV1_0TargetTest \
126    VtsHalGatekeeperV1_0TargetTest \
127    VtsHalKeymasterV3_0TargetTest \
128    VtsHalKeymasterV4_0TargetTest \
129
130PRODUCT_BOOT_JARS := \
131    $(ART_APEX_JARS) \
132    ext \
133    com.android.i18n:core-icu4j \
134    framework-minus-apex \
135    telephony-common \
136    voip-common \
137    ims-common \
138
139PRODUCT_UPDATABLE_BOOT_JARS := \
140    com.android.conscrypt:conscrypt \
141    com.android.os.statsd:framework-statsd \
142    com.android.wifi:framework-wifi \
143    com.android.tethering:framework-tethering \
144
145