Build dynamic sensor host test only for linux host
This fix a build breakage for mac.
Bug: 37482951
Test: m checkbuild sdk_repo -j32 works
Change-Id: I9d7f35abbaef6c830ba0f7e804451f98a128d887
diff --git a/modules/sensors/dynamic_sensor/Android.mk b/modules/sensors/dynamic_sensor/Android.mk
index 4608508..348542a 100644
--- a/modules/sensors/dynamic_sensor/Android.mk
+++ b/modules/sensors/dynamic_sensor/Android.mk
@@ -88,6 +88,8 @@
include $(CLEAR_VARS)
LOCAL_MODULE := hidrawsensor_host_test
LOCAL_MODULE_TAGS := optional
+# host test is targeting linux host only
+LOCAL_MODULE_HOST_OS := linux
LOCAL_CFLAGS += $(COMMON_CFLAGS)
@@ -109,6 +111,8 @@
include $(CLEAR_VARS)
LOCAL_MODULE := hidrawdevice_host_test
LOCAL_MODULE_TAGS := optional
+# host test is targeting linux host only
+LOCAL_MODULE_HOST_OS := linux
LOCAL_CFLAGS += $(COMMON_CFLAGS)