On GMINL, the iio sensor HAL is named sensors-$(TARGET_BOARD_PLATFORM).
For coho targets with auto-detection enabled, this HAL name does not
match the existing sensor records since they are not platform
dependent.
As in IRDA, the iio sensor HAL module name will be iio-sensors-hal.so
if auto-detection is enabled.
Issue: GMINL-6376
Change-Id: I83e09e9422b3e38edf5485aec6622214850e8247
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
$(src_path)/filtering.c \
LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
+ifeq ($(HAL_AUTODETECT),true)
+LOCAL_MODULE := iio-sensors-hal
+else
LOCAL_MODULE := sensors.$(TARGET_BOARD_PLATFORM)
+endif
LOCAL_MODULE_OWNER := intel
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE_TAGS := optional