From b07706602008134069db5f76b6614e50428a286d Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Mon, 13 Sep 2021 14:17:24 +0200 Subject: sdm660-common: Conditionally build IR HIDL Change-Id: I7ebde1c32e2a64c867b7ae26c3aa254432386df2 --- sdm660.mk | 9 +++++++++ 1 file changed, 9 insertions(+) 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 \ -- cgit v1.2.3