Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 1 | # |
Branislav Rankov | e552635 | 2020-07-03 15:27:26 +0100 | [diff] [blame] | 2 | # Copyright 2020 The Android Open Source Project |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 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 | |
Peter Collingbourne | 1557fe4 | 2020-02-14 12:36:39 -0800 | [diff] [blame] | 17 | PRODUCT_SHIPPING_API_LEVEL := 29 |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 18 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 19 | PRODUCT_FULL_TREBLE_OVERRIDE := true |
Peter Collingbourne | 1557fe4 | 2020-02-14 12:36:39 -0800 | [diff] [blame] | 20 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 21 | |
| 22 | # |
| 23 | # All components inherited here go to system image |
| 24 | # |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
JaeMan | 29595de | 2020-07-14 01:39:45 +0000 | [diff] [blame] | 26 | $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk) |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 27 | |
Justin Yun | 8a4df45 | 2019-11-15 16:25:45 +0900 | [diff] [blame] | 28 | # |
| 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 Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 33 | |
| 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 Collingbourne | 51734a3 | 2020-10-15 20:32:31 -0700 | [diff] [blame] | 43 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 44 | |
Roman Kiryanov | a8c38c8 | 2020-05-12 11:43:31 -0700 | [diff] [blame] | 45 | PRODUCT_SOONG_NAMESPACES += device/generic/goldfish |
| 46 | |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 47 | PRODUCT_PACKAGES += \ |
Kevin Brodsky | e56c847 | 2020-04-15 16:31:31 +0100 | [diff] [blame] | 48 | android.hardware.audio.service \ |
| 49 | android.hardware.audio@6.0-impl:32 \ |
| 50 | android.hardware.audio.effect@6.0-impl:32 \ |
Kevin Brodsky | 569ba7f | 2020-01-21 17:39:09 +0000 | [diff] [blame] | 51 | audio.primary.default \ |
| 52 | audio.r_submix.default \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 53 | android.hardware.drm@1.0-service \ |
| 54 | android.hardware.drm@1.0-impl \ |
Robert Shih | 2387a0a | 2019-11-25 22:25:40 -0800 | [diff] [blame] | 55 | android.hardware.drm@1.3-service.clearkey \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 56 | android.hardware.gatekeeper@1.0-service.software \ |
| 57 | android.hardware.graphics.allocator@2.0-service \ |
| 58 | android.hardware.graphics.allocator@2.0-impl \ |
| 59 | android.hardware.graphics.composer@2.1-service \ |
| 60 | android.hardware.graphics.composer@2.1-impl \ |
| 61 | android.hardware.graphics.mapper@2.0-impl \ |
Kevin Brodsky | 2941670 | 2020-01-21 15:16:37 +0000 | [diff] [blame] | 62 | android.hardware.health@2.0-service \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 63 | android.hardware.keymaster@4.0-service \ |
| 64 | android.hardware.keymaster@4.0-impl \ |
Peter Collingbourne | 8bc1b8d | 2021-01-20 16:27:54 -0800 | [diff] [blame] | 65 | gralloc.minigbm \ |
| 66 | hwcomposer.drm_minigbm \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 67 | libEGL_swiftshader \ |
| 68 | libGLESv1_CM_swiftshader \ |
| 69 | libGLESv2_swiftshader \ |
| 70 | |
Kevin Brodsky | 6af0e2f | 2020-04-15 16:24:24 +0100 | [diff] [blame] | 71 | PRODUCT_PACKAGES += \ |
| 72 | android.hardware.bluetooth@1.1-service.sim \ |
| 73 | android.hardware.bluetooth.audio@2.0-impl |
Alistair Delva | 9579f0d | 2020-06-08 10:13:01 -0700 | [diff] [blame] | 74 | PRODUCT_PROPERTY_OVERRIDES += vendor.bt.rootcanal_test_console=off |
Kevin Brodsky | 6af0e2f | 2020-04-15 16:24:24 +0100 | [diff] [blame] | 75 | |
Mitch Phillips | ae962a3 | 2020-04-30 11:05:20 -0700 | [diff] [blame] | 76 | PRODUCT_HOST_PACKAGES += bind_to_localhost |
| 77 | |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 78 | PRODUCT_PACKAGE_OVERLAYS := device/generic/goldfish/overlay |
| 79 | |
| 80 | PRODUCT_NAME := fvp |
| 81 | PRODUCT_DEVICE := fvpbase |
| 82 | PRODUCT_BRAND := Android |
| 83 | PRODUCT_MODEL := AOSP on FVP |
| 84 | |
| 85 | PRODUCT_COPY_FILES += \ |
| 86 | device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ |
| 87 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
Kevin Brodsky | 6af0e2f | 2020-04-15 16:24:24 +0100 | [diff] [blame] | 88 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ |
| 89 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
Peter Collingbourne | 19debca | 2021-01-25 22:15:20 -0800 | [diff] [blame] | 90 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
Evgenii Stepanov | c7dd918 | 2021-02-17 12:52:25 -0800 | [diff] [blame] | 91 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
Kevin Brodsky | 6af0e2f | 2020-04-15 16:24:24 +0100 | [diff] [blame] | 92 | system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:vendor/etc/bluetooth/controller_properties.json \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 93 | device/generic/goldfish/fvpbase/fstab.fvpbase:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.fvpbase \ |
Peter Collingbourne | 8bc1b8d | 2021-01-20 16:27:54 -0800 | [diff] [blame] | 94 | device/generic/goldfish/fvpbase/fstab.qemu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qemu \ |
| 95 | device/generic/goldfish/fvpbase/fstab.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.fvpbase \ |
| 96 | device/generic/goldfish/fvpbase/fstab.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.qemu \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 97 | device/generic/goldfish/fvpbase/init.fvpbase.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fvpbase.rc \ |
Peter Collingbourne | 8bc1b8d | 2021-01-20 16:27:54 -0800 | [diff] [blame] | 98 | device/generic/goldfish/fvpbase/init.qemu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qemu.rc \ |
Peter Collingbourne | 8899959 | 2020-05-07 15:56:37 -0700 | [diff] [blame] | 99 | device/generic/goldfish/fvpbase/required_images:required_images \ |
Kevin Brodsky | 42ff96b | 2021-01-15 15:56:59 +0000 | [diff] [blame] | 100 | device/generic/goldfish/fvpbase/ueventd.fvp.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 101 | frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 102 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
| 103 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 104 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 105 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 106 | frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \ |
| 107 | |
Peter Collingbourne | 0ed7417 | 2020-04-23 17:06:47 -0700 | [diff] [blame] | 108 | PRODUCT_BUILD_BOOT_IMAGE := true |
| 109 | |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 110 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
Peter Collingbourne | 8bc1b8d | 2021-01-20 16:27:54 -0800 | [diff] [blame] | 111 | qemu.hw.mainkeys=0 \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 112 | ro.hardware.egl=swiftshader \ |
Peter Collingbourne | 73835bd | 2021-03-11 12:51:25 -0800 | [diff] [blame] | 113 | ro.hw_timeout_multiplier=50 \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 114 | debug.sf.nobootanimation=1 \ |
| 115 | |
| 116 | PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true |
| 117 | |
| 118 | # It's almost always faster to dexopt on the host even in eng builds. |
| 119 | WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false |
| 120 | |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 121 | DEVICE_MANIFEST_FILE := device/generic/goldfish/fvpbase/manifest.xml |
Peter Collingbourne | 67a0162 | 2019-12-11 16:22:21 -0800 | [diff] [blame] | 122 | |
Branislav Rankov | e552635 | 2020-07-03 15:27:26 +0100 | [diff] [blame] | 123 | # Use a multilib setup (see fvpbase/BoardConfig.mk). |
| 124 | FVP_MULTILIB_BUILD := true |
| 125 | |