1# 2# Copyright (C) 2022 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# Set board, as displays are set in the config_BOARD.json file (in 18# that file, display0 is main, display1 is cluster, and any other displays 19# are passenger displays - notice that the maximum allowed is 4 total). 20TARGET_BOARD_INFO_FILE := device/google/cuttlefish/shared/auto_md/android-info.txt 21 22PRODUCT_COPY_FILES += \ 23 device/google/cuttlefish/shared/auto_md/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml 24 25PRODUCT_PACKAGE_OVERLAYS += \ 26 device/google/cuttlefish/shared/auto_md/overlay 27 28# HSUM is currently incompatible with telephony. 29# TODO(b/283853205): Properly disable telephony using per-partition makefile. 30TARGET_NO_TELEPHONY := true 31 32ENABLE_CLUSTER_OS_DOUBLE:=true 33 34PRODUCT_PACKAGES += \ 35 ClusterHomeSample \ 36 ClusterOsDouble \ 37 CarServiceOverlayEmulatorOsDouble \ 38 CarServiceOverlayMdEmulatorOsDouble \ 39 MultiDisplaySecondaryHomeTestLauncher \ 40 MultiDisplayTest 41 42PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 43 com.android.car.internal.debug.num_auto_populated_users=1 # 1 passenger only (so 2nd display shows user picker) 44# TODO(b/233370174): add audio multi-zone 45# ro.vendor.simulateMultiZoneAudio=true \ 46 47# Enable per-display power management 48PRODUCT_COPY_FILES += \ 49 device/google/cuttlefish/vsoc_x86_64_only/auto_md/display_layout_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_layout_configuration.xml 50 51# This will disable dynamic displays and enable hardcoded displays on hwservicemanager. 52$(call inherit-product, device/generic/car/emulator/cluster/cluster-hwservicemanager.mk) 53 54# Disable shared system image checking 55PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := false 56 57# Add the regular stuff. 58$(call inherit-product, device/google/cuttlefish/vsoc_x86_64_only/auto/aosp_cf.mk) 59 60PRODUCT_NAME := aosp_cf_x86_64_auto_md 61PRODUCT_MODEL := Cuttlefish x86_64 auto 64-bit only multi-displays 62 63ifeq ($(PRODUCT_NAME),$(TARGET_PRODUCT)) # Show warning only when this is the final target product. 64$(warning ${PRODUCT_NAME} is for development purposes only.) 65endif 66