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 21$(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) 22$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) 23 24PRODUCT_SOONG_NAMESPACES += device/generic/goldfish 25 26PRODUCT_PACKAGES += \ 27 com.android.adbd \ 28 adbd_system_api \ 29 android.hardware.confirmationui@1.0-service.trusty \ 30 android.hidl.allocator@1.0-service \ 31 android.system.suspend@1.0-service \ 32 apexd \ 33 com.android.art \ 34 com.android.i18n \ 35 com.android.runtime \ 36 dhcpclient \ 37 gatekeeperd \ 38 hwservicemanager \ 39 init_system \ 40 init_vendor \ 41 init.environ.rc \ 42 keymaster_soft_wrapped_attestation_keys.xml \ 43 libandroid_servers \ 44 libc.bootstrap \ 45 libdl.bootstrap \ 46 libdl_android.bootstrap \ 47 libm.bootstrap \ 48 linker \ 49 linker64 \ 50 linkerconfig \ 51 logcat \ 52 logd \ 53 logwrapper \ 54 mediaserver \ 55 mdnsd \ 56 odsign \ 57 reboot \ 58 securedpud \ 59 servicemanager \ 60 sh \ 61 su \ 62 toolbox \ 63 toybox \ 64 vdc \ 65 vndservicemanager \ 66 vold \ 67 68# VINTF stuff for system and vendor (no product / odm / system_ext / etc.) 69PRODUCT_PACKAGES += \ 70 system_compatibility_matrix.xml \ 71 system_manifest.xml \ 72 vendor_compatibility_matrix.xml \ 73 vendor_manifest.xml \ 74 75# Devices that inherit from build/make/target/product/base.mk always have 76# /system/system_ext/etc/vintf/manifest.xml generated. And build-time VINTF 77# checks assume that. Since we don't inherit from base.mk, add the dependency 78# here manually. 79PRODUCT_PACKAGES += \ 80 system_ext_manifest.xml \ 81 82# Skip VINTF checks for kernel configs 83PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false 84 85# Ensure boringssl NIAP check won't reboot us 86PRODUCT_PACKAGES += \ 87 com.android.conscrypt \ 88 boringssl_self_test \ 89 90# SELinux packages are added as dependencies of the selinux_policy 91# phony package. 92PRODUCT_PACKAGES += \ 93 selinux_policy \ 94 95PRODUCT_HOST_PACKAGES += \ 96 adb \ 97 e2fsdroid \ 98 make_f2fs \ 99 mke2fs \ 100 sload_f2fs \ 101 toybox \ 102 103PRODUCT_COPY_FILES += \ 104 system/core/rootdir/init.usb.rc:system/etc/init/hw/init.usb.rc \ 105 system/core/rootdir/init.usb.configfs.rc:system/etc/init/hw/init.usb.configfs.rc \ 106 system/core/rootdir/etc/hosts:system/etc/hosts \ 107 108PRODUCT_FULL_TREBLE_OVERRIDE := true 109 110PRODUCT_COPY_FILES += \ 111 device/generic/trusty/fstab.ranchu:root/fstab.qemu_trusty \ 112 device/generic/trusty/init.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qemu_trusty.rc \ 113 device/generic/trusty/ueventd.qemu_trusty.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \ 114 115PRODUCT_COPY_FILES += \ 116 device/generic/goldfish/data/etc/config.ini:config.ini \ 117 device/generic/trusty/advancedFeatures.ini:advancedFeatures.ini \ 118 119# for Trusty 120$(call inherit-product, system/core/trusty/trusty-base.mk) 121$(call inherit-product, system/core/trusty/trusty-storage.mk) 122$(call inherit-product, system/core/trusty/trusty-test.mk) 123 124# Test Utilities 125PRODUCT_PACKAGES += \ 126 tipc-test \ 127 libtrusty_metrics_test \ 128 trusty-ut-ctrl \ 129 VtsAidlKeyMintTargetTest \ 130 VtsHalConfirmationUIV1_0TargetTest \ 131 VtsHalGatekeeperV1_0TargetTest \ 132 VtsHalKeymasterV3_0TargetTest \ 133 VtsHalKeymasterV4_0TargetTest \ 134 VtsHalRemotelyProvisionedComponentTargetTest \ 135