blob: 888d9f000359717c2c0caf4cfedf5e807748ab85 [file] [log] [blame]
Peter Collingbourneae53c1a2019-10-15 18:42:38 -07001#
Branislav Rankove5526352020-07-03 15:27:26 +01002# Copyright 2020 The Android Open Source Project
Peter Collingbourneae53c1a2019-10-15 18:42:38 -07003#
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
Peter Collingbourne1557fe42020-02-14 12:36:39 -080017PRODUCT_SHIPPING_API_LEVEL := 29
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070018PRODUCT_USE_DYNAMIC_PARTITIONS := true
19PRODUCT_FULL_TREBLE_OVERRIDE := true
Peter Collingbourne1557fe42020-02-14 12:36:39 -080020PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070021
22#
23# All components inherited here go to system image
24#
25$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
JaeMan29595de2020-07-14 01:39:45 +000026$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070027
Justin Yun8a4df452019-11-15 16:25:45 +090028#
29# All components inherited here go to system_ext image
30#
31$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
32$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070033
34#
35# All components inherited here go to product image
36#
37$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
38
39#
40# All components inherited here go to vendor image
41#
42$(call inherit-product, $(SRC_TARGET_DIR)/product/media_vendor.mk)
Peter Collingbourne51734a32020-10-15 20:32:31 -070043$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070044
Roman Kiryanova8c38c82020-05-12 11:43:31 -070045PRODUCT_SOONG_NAMESPACES += device/generic/goldfish
46
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070047PRODUCT_PACKAGES += \
Kevin Brodskye56c8472020-04-15 16:31:31 +010048 android.hardware.audio.service \
49 android.hardware.audio@6.0-impl:32 \
50 android.hardware.audio.effect@6.0-impl:32 \
Kevin Brodsky569ba7f2020-01-21 17:39:09 +000051 audio.primary.default \
52 audio.r_submix.default \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070053 android.hardware.drm@1.0-service \
54 android.hardware.drm@1.0-impl \
Edwin Wongffe621c2021-03-25 14:42:41 -070055 android.hardware.drm@1.4-service.clearkey \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070056 android.hardware.gatekeeper@1.0-service.software \
57 android.hardware.graphics.allocator@2.0-service \
58 android.hardware.graphics.allocator@2.0-impl \
Kevin Brodsky665da3f2022-02-15 13:47:20 +000059 android.hardware.graphics.composer@2.1-service \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070060 android.hardware.graphics.mapper@2.0-impl \
Kevin Brodsky29416702020-01-21 15:16:37 +000061 android.hardware.health@2.0-service \
Branislav Rankov0a2030d2021-08-26 23:08:36 +010062 android.hardware.neuralnetworks@1.3-service-sample-all \
Michael Butler889bf782022-01-27 20:14:59 -080063 android.hardware.neuralnetworks@1.3-service-sample-limited \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070064 android.hardware.keymaster@4.0-service \
65 android.hardware.keymaster@4.0-impl \
Peter Collingbourne8bc1b8d2021-01-20 16:27:54 -080066 gralloc.minigbm \
67 hwcomposer.drm_minigbm \
Mitch Phillipsc45f6c12021-07-07 12:33:12 -070068 libEGL_angle \
69 libGLESv1_CM_angle \
70 libGLESv2_angle \
71 vulkan.pastel \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070072
Mitch Phillipsae962a32020-04-30 11:05:20 -070073PRODUCT_HOST_PACKAGES += bind_to_localhost
74
Kevin Brodsky125a8f22022-03-14 09:06:46 +000075PRODUCT_PACKAGE_OVERLAYS := device/generic/goldfish/fvpbase/overlay
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070076
77PRODUCT_NAME := fvp
78PRODUCT_DEVICE := fvpbase
79PRODUCT_BRAND := Android
80PRODUCT_MODEL := AOSP on FVP
81
82PRODUCT_COPY_FILES += \
83 device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
84 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
Peter Collingbourne19debca2021-01-25 22:15:20 -080085 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
Evgenii Stepanovc7dd9182021-02-17 12:52:25 -080086 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070087 device/generic/goldfish/fvpbase/fstab.fvpbase:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.fvpbase \
Peter Collingbourne8bc1b8d2021-01-20 16:27:54 -080088 device/generic/goldfish/fvpbase/fstab.qemu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qemu \
89 device/generic/goldfish/fvpbase/fstab.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.fvpbase \
90 device/generic/goldfish/fvpbase/fstab.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.qemu \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070091 device/generic/goldfish/fvpbase/init.fvpbase.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fvpbase.rc \
Peter Collingbourne8bc1b8d2021-01-20 16:27:54 -080092 device/generic/goldfish/fvpbase/init.qemu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qemu.rc \
Peter Collingbourne88999592020-05-07 15:56:37 -070093 device/generic/goldfish/fvpbase/required_images:required_images \
Kevin Brodsky42ff96b2021-01-15 15:56:59 +000094 device/generic/goldfish/fvpbase/ueventd.fvp.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -070095 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
96 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
97 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
98 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
99 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
100 frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \
101
Peter Collingbourne0ed74172020-04-23 17:06:47 -0700102PRODUCT_BUILD_BOOT_IMAGE := true
103
Peter Collingbourneae53c1a2019-10-15 18:42:38 -0700104PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Peter Collingbourne8bc1b8d2021-01-20 16:27:54 -0800105 qemu.hw.mainkeys=0 \
Peter Collingbourne1c62f5a2021-02-08 12:09:47 -0800106 ro.hw_timeout_multiplier=50 \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -0700107 debug.sf.nobootanimation=1 \
Mitch Phillipsc45f6c12021-07-07 12:33:12 -0700108 ro.hardware.egl=angle \
109 ro.hardware.vulkan=pastel \
Peter Collingbourneae53c1a2019-10-15 18:42:38 -0700110
111PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true
112
113# It's almost always faster to dexopt on the host even in eng builds.
114WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
115
Peter Collingbourneae53c1a2019-10-15 18:42:38 -0700116DEVICE_MANIFEST_FILE := device/generic/goldfish/fvpbase/manifest.xml
Peter Collingbourne67a01622019-12-11 16:22:21 -0800117
Branislav Rankove5526352020-07-03 15:27:26 +0100118# Use a multilib setup (see fvpbase/BoardConfig.mk).
119FVP_MULTILIB_BUILD := true
120