aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shared/device.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/device.mk b/shared/device.mk
index 8bb54c40c..834416371 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -401,8 +401,19 @@ PRODUCT_PACKAGES += \
#
# Hardware Composer HAL
#
+# The device needs to avoid having both hwcomposer2.4 and hwcomposer3
+# services running at the same time so make the user manually enables
+# in order to run with --gpu_mode=drm.
+ifeq ($(TARGET_ENABLE_DRMHWCOMPOSER),true)
+DEVICE_MANIFEST_FILE += \
+ device/google/cuttlefish/shared/config/manifest_android.hardware.graphics.composer@2.4-service.xml
+PRODUCT_PACKAGES += \
+ android.hardware.graphics.composer@2.4-service \
+ hwcomposer.drm
+else
PRODUCT_PACKAGES += \
android.hardware.graphics.composer3-service.ranchu
+endif
#
# Gralloc HAL