• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2020 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#RBC# type_hint string TROUT_KERNEL_IMAGE
18
19TARGET_USES_CF_RILD ?= false
20$(call inherit-product, device/google/cuttlefish/vsoc_arm64_only/auto/aosp_cf.mk)
21
22# Prefer ext4 for the system image
23TARGET_RO_FILE_SYSTEM_TYPE := ext4
24
25# Audio HAL
26# TODO: turn back on goldfish HAL and HFP
27TARGET_USES_CUTTLEFISH_AUDIO ?= false
28AUDIO_FEATURE_HFP_ENABLED ?= true
29
30# HWComposer choice. Setting this flag to true
31# will disable Ranchu and turn on the legacy
32# drmhwc. This is not a supported configuration and
33# should only be turned on for debugging and experimental
34# purposes. In general, omitting this line or leaving the
35# default configured (false) will do the right thing and pick
36# Ranchu from upstream Cuttlefish
37TARGET_ENABLE_DRMHWCOMPOSER ?= false
38
39# Audio Control HAL
40# TODO (chenhaosjtuacm, egranata): move them to kernel command line
41LOCAL_AUDIOCONTROL_PROPERTIES ?= \
42    ro.vendor.audiocontrol.server.cid=1000 \
43    ro.vendor.audiocontrol.server.port=9410 \
44
45# Tracing Server Address
46LOCAL_TRACING_SERVER_PROPERTIES ?= \
47    ro.vendor.tracing.server.cid=1000 \
48    ro.vendor.tracing.server.port=9510 \
49
50include device/google/trout/aosp_trout_common.mk
51
52DEVICE_MANIFEST_FILE += device/google/trout/trout_arm64/manifest.xml
53
54PRODUCT_PROPERTY_OVERRIDES += \
55	vendor.ser.bt-uart?= \
56
57PRODUCT_PACKAGES += \
58	vport_trigger \
59
60# Sensor HAL
61# The implementations use SCMI, which only works on arm architecture
62LOCAL_SENSOR_PRODUCT_PACKAGE ?= \
63    android.hardware.sensors@2.0-service.multihal \
64    android.hardware.sensors@2.0-service.multihal.rc \
65    android.hardware.sensors@2.0-Google-IIO-Subhal \
66
67LOCAL_SENSOR_FILE_OVERRIDES := true
68
69UEVENTD_ODM_COPY_FILE ?= device/google/trout/product_files/odm/ueventd.rc
70
71PRODUCT_COPY_FILES += \
72    $(UEVENTD_ODM_COPY_FILE):$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc \
73    device/google/trout/hal/sensors/2.0/config/sensor_hal_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_hal_configuration.xml \
74    device/google/trout/product_files/odm/usr/idc/Vendor_0fff_Product_0fff.idc:$(TARGET_COPY_OUT_ODM)/usr/idc/Vendor_0fff_Product_0fff.idc \
75    device/google/trout/product_files/vendor/etc/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf \
76    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
77    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
78
79# WiFi configuration
80PRODUCT_ENFORCE_MAC80211_HWSIM ?= false
81ifndef DEVICE_VIRTWIFI_PORT
82DEVICE_VIRTWIFI_PORT := eth0
83endif
84PRODUCT_PROPERTY_OVERRIDES += ro.vendor.disable_rename_eth0?=true
85PRODUCT_COPY_FILES += device/google/trout/trout_arm64/wifi/virtwifi.sh:$(TARGET_COPY_OUT_VENDOR)/bin/virtwifi.sh
86PRODUCT_COPY_FILES += device/google/trout/trout_arm64/wifi/virtwifi.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/virtwifi.rc
87
88PRODUCT_NAME := aosp_trout_arm64
89PRODUCT_DEVICE := trout_arm64
90PRODUCT_MODEL := arm64 trout
91