summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-06-15 14:11:30 -0700
committerJP Abgrall <jpa@google.com>2012-06-15 14:11:30 -0700
commita779188720ba7d7915bde21b18d89bc7bb6e6ebf (patch)
tree92af1654715f9476adbe2bbc0473932707b684a3
parentc0aca57ba5869c883bb8ce2dd1d90db86c8212f9 (diff)
downloadandroid_hardware_invensense-a779188720ba7d7915bde21b18d89bc7bb6e6ebf.tar.gz
android_hardware_invensense-a779188720ba7d7915bde21b18d89bc7bb6e6ebf.tar.bz2
android_hardware_invensense-a779188720ba7d7915bde21b18d89bc7bb6e6ebf.zip
libsensors: Fix build breakage. Don't build IIO hal unless requested
Avoid building the libinvensense_hal and other libs unless IIO is requested. Change-Id: I051c501bd3267e72cc4d66544dbbbbd5418ae680
-rw-r--r--libsensors/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsensors/Android.mk b/libsensors/Android.mk
index f6c9323..2b704db 100644
--- a/libsensors/Android.mk
+++ b/libsensors/Android.mk
@@ -16,6 +16,7 @@
LOCAL_PATH := $(call my-dir)
ifneq ($(TARGET_SIMULATOR),true)
+ifeq ($(BUILD_INVENSENSE_IIO_HAL), true)
# InvenSense fragment of the HAL
include $(CLEAR_VARS)
@@ -141,4 +142,5 @@ LOCAL_MODULE_PATH := $(TARGET_OUT)/lib
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)
+endif # BUILD_INVENSENSE_IIO_HAL
endif # !TARGET_SIMULATOR