summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vibrator-vendor-product.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/vibrator-vendor-product.mk b/vibrator-vendor-product.mk
index 25faaa6..4d97341 100644
--- a/vibrator-vendor-product.mk
+++ b/vibrator-vendor-product.mk
@@ -3,5 +3,10 @@ QTI_VIBRATOR_HAL_SERVICE := \
PRODUCT_PACKAGES += $(QTI_VIBRATOR_HAL_SERVICE)
-PRODUCT_COPY_FILES += \
+ifneq ($(BOARD_OPENSOURCE_DIR), )
+ PRODUCT_COPY_FILES += \
+ $(BOARD_OPENSOURCE_DIR)/vibrator/excluded-input-devices.xml:vendor/etc/excluded-input-devices.xml
+else
+ PRODUCT_COPY_FILES += \
vendor/qcom/opensource/vibrator/excluded-input-devices.xml:vendor/etc/excluded-input-devices.xml
+endif # BOARD_OPENSOURCE_DIR