summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-13 14:17:24 +0200
committerSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-20 14:20:47 +0200
commitb07706602008134069db5f76b6614e50428a286d (patch)
tree2a1838d65b65ac1d28cbc22460e1d0c7bf9a572e
parent04f9abedb83abf72aaf417fe378730dd1dd63966 (diff)
sdm660-common: Conditionally build IR HIDL
Change-Id: I7ebde1c32e2a64c867b7ae26c3aa254432386df2
-rw-r--r--sdm660.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/sdm660.mk b/sdm660.mk
index 4e57a6d..3a5ba4d 100644
--- a/sdm660.mk
+++ b/sdm660.mk
@@ -141,6 +141,15 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
$(LOCAL_PATH)/configs/component-overrides-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/component-overrides.xml
+# ConsumerIR
+ifeq ($(BOARD_HAVE_IR),true)
+PRODUCT_PACKAGES += \
+ android.hardware.ir@1.0-service.xiaomi_sdm660
+
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
+endif
+
# Display
PRODUCT_PACKAGES += \
gralloc.sdm660 \