summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2015-12-23 14:29:13 +1100
committerSimon Shields <keepcalm444@gmail.com>2015-12-23 14:29:13 +1100
commit68a1cea0871a356d7c6e2989ec576bff3178db7e (patch)
tree325f1ae73a3a8ff647dbcda1c887487033e04601
parentf115fa584b0a929ba504b51899b97c706404e6dd (diff)
downloaddevice_samsung_i9300-68a1cea0871a356d7c6e2989ec576bff3178db7e.zip
device_samsung_i9300-68a1cea0871a356d7c6e2989ec576bff3178db7e.tar.gz
device_samsung_i9300-68a1cea0871a356d7c6e2989ec576bff3178db7e.tar.bz2
i9300: ensure we don't build opensource sensors
currently the compass seems to be really broken, so we'll use the proprietary ones for now Change-Id: I195e0765da7789d38940835d9e8c6eff4e09a900
-rw-r--r--BoardConfig.mk3
-rw-r--r--libsensors/Android.mk3
2 files changed, 5 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 3cbef38..3130ef3 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -31,6 +31,9 @@ COMMON_GLOBAL_CFLAGS += -DDISABLE_ASHMEM_TRACKING
# Graphics
TARGET_REQUIRES_SYNCHRONOUS_SETSURFACE := true
+# Sensors
+BOARD_USES_OPENSOURCE_SENSORS := false
+
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/i9300/bluetooth
diff --git a/libsensors/Android.mk b/libsensors/Android.mk
index 8d15195..8bdcd66 100644
--- a/libsensors/Android.mk
+++ b/libsensors/Android.mk
@@ -12,7 +12,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
+ifeq ($(BOARD_USES_OPENSOURCE_SENSORS),true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
@@ -46,3 +46,4 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
+endif