summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device.mk9
-rw-r--r--gralloc/Android.bp10
2 files changed, 18 insertions, 1 deletions
diff --git a/device.mk b/device.mk
index b7f1dc1..5fb4127 100644
--- a/device.mk
+++ b/device.mk
@@ -74,7 +74,6 @@ PRODUCT_PACKAGES += \
android.hardware.fastboot@1.0-impl-mock \
libdrm \
libdrm_omap \
- hwcomposer.am57x \
gralloc.am57x \
libEGL_POWERVR_SGX544_116 \
libGLESv1_CM_POWERVR_SGX544_116 \
@@ -83,6 +82,14 @@ PRODUCT_PACKAGES += \
memtrack.am57x \
pvrsrvctl \
+ifeq ($(USE_DRM_HWC), y)
+PRODUCT_PACKAGES += hwcomposer.drm_imagination
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.hardware.hwcomposer=drm_imagination \
+else
+PRODUCT_PACKAGES += hwcomposer.am57x
+endif
+
#Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
diff --git a/gralloc/Android.bp b/gralloc/Android.bp
new file mode 100644
index 0000000..30c0402
--- /dev/null
+++ b/gralloc/Android.bp
@@ -0,0 +1,10 @@
+cc_library_shared {
+ name: "hwcomposer.drm_imagination",
+ defaults: ["hwcomposer.drm_defaults"],
+ srcs: [":drm_hwcomposer_platformimagination"],
+ whole_static_libs: ["drm_hwcomposer"],
+ shared_libs: ["libion"],
+ include_dirs: [
+ "hardware/ti/am57x/libhwcomposer",
+ ],
+}