OSDN Git Service

Android.mk: make the module names generic instead of based on TARGET_BOARD_PLATFORM
authorRob Herring <robh@kernel.org>
Thu, 5 May 2016 13:59:14 +0000 (08:59 -0500)
committerRob Herring <robh@kernel.org>
Thu, 5 May 2016 13:59:14 +0000 (08:59 -0500)
Use "iio" for the module name. Platforms using this HAL should set the
properties "ro.hardware.sensors" and "ro.hardware.activity_recognition" to
"iio".

Signed-off-by: Rob Herring <robh@kernel.org>
Android.mk

index 51cf11d..a1148fc 100644 (file)
@@ -35,7 +35,7 @@ src_files := $(src_path)/entry.c \
 ifeq ($(HAL_AUTODETECT),true)
 LOCAL_MODULE := iio-sensors-hal
 else
-LOCAL_MODULE := sensors.$(TARGET_BOARD_PLATFORM)
+LOCAL_MODULE := sensors.iio
 endif
 LOCAL_MODULE_OWNER := intel
 LOCAL_MODULE_RELATIVE_PATH := hw
@@ -70,7 +70,7 @@ activity_src_files := $(src_path)/activity_event_entry.c \
                      $(src_path)/discovery.c \
                      $(src_path)/utils.c \
 
-LOCAL_MODULE := activity_recognition.$(TARGET_BOARD_PLATFORM)
+LOCAL_MODULE := activity_recognition.iio
 LOCAL_MODULE_OWNER := intel
 LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_MODULE_TAGS := optional