1#
2# Copyright (C) 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# Enable Setup Wizard. This overrides the setting in emulator_vendor.mk
17PRODUCT_SYSTEM_EXT_PROPERTIES += \
18    ro.setupwizard.mode?=OPTIONAL
19
20ifeq (,$(ENABLE_REAR_VIEW_CAMERA_SAMPLE))
21ENABLE_REAR_VIEW_CAMERA_SAMPLE:=true
22endif
23
24PRODUCT_PACKAGE_OVERLAYS := device/generic/car/emulator/overlay
25
26$(call inherit-product, device/generic/car/common/car.mk)
27# This overrides device/generic/car/common/car.mk
28$(call inherit-product, device/generic/car/emulator/audio/car_emulator_audio.mk)
29$(call inherit-product, device/generic/car/emulator/rotary/car_rotary.mk)
30# Enables USB related passthrough
31$(call inherit-product, device/generic/car/emulator/usbpt/car_usbpt.mk)
32
33TARGET_PRODUCT_PROP := device/generic/car/emulator/usbpt/bluetooth/bluetooth.prop
34
35# EVS
36# By default, we enable EvsManager, a sample EVS app, and a mock EVS HAL implementation.
37# If you want to use your own EVS HAL implementation, please set ENABLE_MOCK_EVSHAL as false
38# and add your HAL implementation to the product.  Please also check init.evs.rc and see how
39# you can configure EvsManager to use your EVS HAL implementation.  Similarly, please set
40# ENABLE_SAMPLE_EVS_APP as false if you want to use your own EVS app configuration or own EVS
41# app implementation.
42ENABLE_EVS_SAMPLE ?= false
43ENABLE_EVS_SERVICE ?= true
44ENABLE_MOCK_EVSHAL ?= true
45ENABLE_CAREVSSERVICE_SAMPLE ?= false
46ENABLE_SAMPLE_EVS_APP ?= false
47ENABLE_CARTELEMETRY_SERVICE ?= false
48ifeq ($(ENABLE_MOCK_EVSHAL), true)
49CUSTOMIZE_EVS_SERVICE_PARAMETER := true
50endif  # ENABLE_MOCK_EVSHAL
51$(call inherit-product, device/generic/car/emulator/evs/evs.mk)
52
53ifeq ($(EMULATOR_DYNAMIC_MULTIDISPLAY_CONFIG),true)
54# This section configures multi-display without hardcoding the
55# displays on hwservicemanager.
56$(call inherit-product, device/generic/car/emulator/multi-display-dynamic/multi-display-dynamic.mk)
57else # EMULATOR_DYNAMIC_MULTIDISPLAY_CONFIG
58ifeq (true,$(BUILD_EMULATOR_CLUSTER_DISPLAY))
59$(call inherit-product, device/generic/car/emulator/cluster/cluster-hwservicemanager.mk)
60endif # BUILD_EMULATOR_CLUSTER_DISPLAY
61endif # EMULATOR_DYNAMIC_MULTIDISPLAY_CONFIG
62
63PRODUCT_PACKAGES += CarServiceOverlayEmulatorMedia
64
65PRODUCT_PRODUCT_PROPERTIES += \
66    ro.carwatchdog.vhal_healthcheck.interval=10 \
67    ro.carwatchdog.client_healthcheck.interval=20 \
68
69# Drive Mode RROs
70PRODUCT_PACKAGES += \
71    DriveModeEcoRRO \
72    DriveModeSportRRO \
73    DriveModeOnRRO \
74
75# Enable socket for qemu VHAL
76BOARD_SEPOLICY_DIRS += device/generic/car/emulator/sepolicy
77