blob: cb97a75dec541533931a571137bc57531d3e61a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
MLSDK_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libmlplatform
LOCAL_CFLAGS := -D_REENTRANT -DLINUX -DANDROID
LOCAL_CFLAGS += -Wall -Werror
LOCAL_C_INCLUDES := \
$(MLSDK_PATH)/platform/include \
$(MLSDK_PATH)/platform/include/linux \
$(MLSDK_PATH)/platform/linux \
$(MLSDK_PATH)/platform/linux/kernel \
$(MLSDK_PATH)/mllite
LOCAL_SRC_FILES := \
mlsdk/platform/linux/mlos_linux.c \
mlsdk/platform/linux/mlsl_linux_mpu.c
LOCAL_SHARED_LIBRARIES := liblog libm libutils libcutils
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libmllite
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS := -DNDEBUG -D_REENTRANT -DLINUX -DANDROID
LOCAL_CFLAGS += -DUNICODE -D_UNICODE -DSK_RELEASE
LOCAL_CFLAGS += -DI2CDEV=\"/dev/mpu\"
LOCAL_CFLAGS += -Wall -Werror
# optionally apply the compass filter. this is set in
# BoardConfig.mk
ifeq ($(BOARD_INVENSENSE_APPLY_COMPASS_NOISE_FILTER),true)
LOCAL_CFLAGS += -DAPPLY_COMPASS_FILTER
endif
LOCAL_C_INCLUDES := \
$(MLSDK_PATH)/mllite \
$(MLSDK_PATH)/mlutils \
$(MLSDK_PATH)/platform/include \
$(MLSDK_PATH)/platform/include/linux \
$(MLSDK_PATH)/platform/linux
LOCAL_SRC_FILES := \
mlsdk/mllite/accel.c \
mlsdk/mllite/compass.c \
mlsdk/mllite/mldl_cfg_mpu.c \
mlsdk/mllite/dmpDefault.c \
mlsdk/mllite/ml.c \
mlsdk/mllite/mlarray.c \
mlsdk/mllite/mlFIFO.c \
mlsdk/mllite/mlFIFOHW.c \
mlsdk/mllite/mlMathFunc.c \
mlsdk/mllite/ml_stored_data.c \
mlsdk/mllite/mlcontrol.c \
mlsdk/mllite/mldl.c \
mlsdk/mllite/mldmp.c \
mlsdk/mllite/mlstates.c \
mlsdk/mllite/mlsupervisor.c \
mlsdk/mllite/mlBiasNoMotion.c \
mlsdk/mllite/mlSetGyroBias.c \
mlsdk/mllite/mlcompat.c \
mlsdk/mlutils/checksum.c \
LOCAL_SHARED_LIBRARIES := libm libutils libcutils liblog libmlplatform
include $(BUILD_SHARED_LIBRARY)
|