OSDN Git Service

Fix LOCAL_MODULE for auto-detected targets
authorThierry Escande <thierry.escande@linux.intel.com>
Tue, 24 Feb 2015 17:00:30 +0000 (18:00 +0100)
committerThierry Escande <thierry.escande@linux.intel.com>
Tue, 24 Feb 2015 17:06:24 +0000 (18:06 +0100)
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>
Android.mk

index 1eeb282..7502a4c 100644 (file)
@@ -23,7 +23,11 @@ src_files := $(src_path)/entry.c \
             $(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