Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright 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 | |
| 17 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 18 | PRODUCT_FULL_TREBLE_OVERRIDE := true |
| 19 | |
| 20 | # |
| 21 | # All components inherited here go to system image |
| 22 | # |
| 23 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 24 | $(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) |
| 25 | |
Justin Yun | 8a4df45 | 2019-11-15 16:25:45 +0900 | [diff] [blame] | 26 | # |
| 27 | # All components inherited here go to system_ext image |
| 28 | # |
| 29 | $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk) |
| 30 | $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk) |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 31 | |
| 32 | # |
| 33 | # All components inherited here go to product image |
| 34 | # |
| 35 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk) |
| 36 | |
| 37 | # |
| 38 | # All components inherited here go to vendor image |
| 39 | # |
| 40 | $(call inherit-product, $(SRC_TARGET_DIR)/product/media_vendor.mk) |
| 41 | |
| 42 | PRODUCT_PACKAGES += \ |
| 43 | android.hardware.audio@2.0-service \ |
| 44 | android.hardware.audio@4.0-impl:32 \ |
| 45 | android.hardware.audio.effect@4.0-impl:32 \ |
| 46 | android.hardware.drm@1.0-service \ |
| 47 | android.hardware.drm@1.0-impl \ |
| 48 | android.hardware.drm@1.2-service.clearkey \ |
| 49 | android.hardware.gatekeeper@1.0-service.software \ |
| 50 | android.hardware.graphics.allocator@2.0-service \ |
| 51 | android.hardware.graphics.allocator@2.0-impl \ |
| 52 | android.hardware.graphics.composer@2.1-service \ |
| 53 | android.hardware.graphics.composer@2.1-impl \ |
| 54 | android.hardware.graphics.mapper@2.0-impl \ |
Kevin Brodsky | 2941670 | 2020-01-21 15:16:37 +0000 | [diff] [blame^] | 55 | android.hardware.health@2.0-service \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 56 | android.hardware.keymaster@4.0-service \ |
| 57 | android.hardware.keymaster@4.0-impl \ |
| 58 | libEGL_swiftshader \ |
| 59 | libGLESv1_CM_swiftshader \ |
| 60 | libGLESv2_swiftshader \ |
| 61 | |
| 62 | PRODUCT_PACKAGE_OVERLAYS := device/generic/goldfish/overlay |
| 63 | |
| 64 | PRODUCT_NAME := fvp |
| 65 | PRODUCT_DEVICE := fvpbase |
| 66 | PRODUCT_BRAND := Android |
| 67 | PRODUCT_MODEL := AOSP on FVP |
| 68 | |
| 69 | PRODUCT_COPY_FILES += \ |
| 70 | device/generic/goldfish/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ |
| 71 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
| 72 | device/generic/goldfish/fvpbase/fstab.fvpbase:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.fvpbase \ |
| 73 | device/generic/goldfish/fvpbase/fstab.fvpbase.initrd:$(TARGET_COPY_OUT_RAMDISK)/fstab.fvpbase \ |
| 74 | device/generic/goldfish/fvpbase/init.fvpbase.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.fvpbase.rc \ |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 75 | frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 76 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
| 77 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 78 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| 79 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 80 | frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \ |
| 81 | |
| 82 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 83 | ro.hardware.egl=swiftshader \ |
| 84 | debug.sf.nobootanimation=1 \ |
| 85 | |
| 86 | PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true |
| 87 | |
| 88 | # It's almost always faster to dexopt on the host even in eng builds. |
| 89 | WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false |
| 90 | |
Peter Collingbourne | ae53c1a | 2019-10-15 18:42:38 -0700 | [diff] [blame] | 91 | DEVICE_MANIFEST_FILE := device/generic/goldfish/fvpbase/manifest.xml |
Peter Collingbourne | 67a0162 | 2019-12-11 16:22:21 -0800 | [diff] [blame] | 92 | |
| 93 | # Normally, the bootloader is supposed to concatenate the Android initramfs |
| 94 | # and the initramfs for the kernel modules and let the kernel combine |
| 95 | # them. However, the bootloader that we're using with FVP (U-Boot) doesn't |
| 96 | # support concatenation, so we implement it in the build system. |
| 97 | droid: $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/boot/ramdisk.img |
| 98 | |
| 99 | $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/boot/ramdisk.img: $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/ramdisk.img $(OUT_DIR)/target/product/$(PRODUCT_DEVICE)/boot/initramfs.img |
| 100 | gzip -dc $^ > $@ |