summaryrefslogtreecommitdiff
path: root/tc0/tc0_swr.mk
blob: a62a8541def1b21e624924e247f1f4b522440344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# Copyright (C) 2020 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

$(call inherit-product, $(LOCAL_PATH)/device.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)

PRODUCT_NAME := tc0_swr
PRODUCT_MANUFACTURER := Arm
PRODUCT_DEVICE := tc0_swr
PRODUCT_MODEL := Total Compute Fast Model (S/W rendering build)

DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/tc0_swr/manifest.xml

PRODUCT_PACKAGES += \
    android.hardware.audio@5.0-impl \
    android.hardware.audio.effect@5.0-impl \
    android.hardware.audio@2.0-service \
    \
    android.hardware.health@2.0-impl \
    android.hardware.health@2.0-service \
    \
    android.hardware.drm@1.0-impl \
    android.hardware.drm@1.0-service \
    \
    android.hardware.graphics.allocator@2.0-impl \
    android.hardware.graphics.allocator@2.0-service \
    android.hardware.graphics.composer@2.2-impl \
    android.hardware.graphics.composer@2.2-service \
    android.hardware.graphics.mapper@2.0-impl \
    \
    android.hardware.keymaster@4.0-service \
    android.hardware.keymaster@4.0-impl \
    \
    android.hardware.power@1.0-service \
    android.hardware.power@1.0-impl \
    android.hardware.power.stats@1.0-service \
    android.hardware.power.stats@1.0-impl \
    \
    android.hardware.bluetooth.audio@2.0-impl \
    android.hardware.soundtrigger@2.2-impl \
    android.hardware.broadcastradio@1.0-impl \
    \
    gralloc.minigbm \
    hwcomposer.drm_minigbm

# Audio Policy Configurations
FW_AV_AUDIOPOLICY_CFG_PATH := frameworks/av/services/audiopolicy/config
PRODUCT_COPY_FILES += \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
    $(FW_AV_AUDIOPOLICY_CFG_PATH)/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml

# "Audio policy no longer supports legacy .conf configuration format"
USE_XML_AUDIO_POLICY_CONF := 1

# Needed, otherwise SystemServiceRegistry complains about no service being
# published for appwidget.
PRODUCT_COPY_FILES += \
    $(call add-to-product-copy-files-if-exists,\
      frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml \
      frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml)

# Add xml file which indicates that the device includes ethernet.
PRODUCT_COPY_FILES += \
    frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml

# Required to override some device configuration, most importantly the
# radio/network settings.
DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/tc0_swr/overlay

PRODUCT_PROPERTY_OVERRIDES += \
    ro.sf.lcd_density=90 \
    ro.hardware.gralloc=minigbm \
    ro.hardware.hwcomposer=drm_minigbm

MULTILIB_BUILD := true

# "Enabling WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY pre-optimizes only
# the boot classpath and system server jars."
# See https://source.android.com/devices/tech/dalvik/configure
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false

# https://source.android.com/devices/tech/ota/apex#configuring_system_to_support_apex_updates
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)

# https://source.android.com/devices/tech/ota/dynamic_partitions/implement
# https://source.android.com/devices/tech/ota/dynamic_partitions/implement#adb-remount
PRODUCT_USE_DYNAMIC_PARTITIONS := false

PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/init.common.rc:root/init.common.rc \
    $(LOCAL_PATH)/ueventd.total_compute.rc:root/ueventd.total_compute.rc

PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/tc0_swr/init.tc0_swr.rc:root/init.total_compute.rc

PRODUCT_PACKAGES += \
    libEGL_swiftshader \
    libGLESv1_CM_swiftshader \
    libGLESv2_swiftshader

PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
    ro.hardware.egl=swiftshader \
    debug.sf.nobootanimation=1

PRODUCT_REQUIRES_INSECURE_EXECMEM_FOR_SWIFTSHADER := true