liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#####---A100---
ifeq (ceres,$(TARGET_BOARD_PLATFORM))
$(warning Use ceres awTuningApp!)
LIBISP_FLAGS = -Wall -Wno-unused-parameter -Wno-macro-redefined -Wno-unused-parameter -Wno-extra-tokens \
        -Wno-null-arithmetic -Wno-format -Wno-reorder -Wno-unused-variable -Wno-writable-strings \
        -Wno-logical-op-parentheses -Wno-sign-compare -Wno-unused-parameter -Wno-unused-value -Wno-incompatible-pointer-types \
        -Wno-unused-function -Wno-parentheses -Wno-extern-c-compat -Wno-null-conversion -Wno-error -Wno-date-time \
        -Wno-sometimes-uninitialized -Wno-gnu-designator -Wno-unused-label -Wno-pointer-arith -Wno-empty-body -fPIC
 
#########################################
 
ISP_PATH:= $(call my-dir)
include $(all-subdir-makefiles)
include $(CLEAR_VARS)
 
LOCAL_PATH := $(ISP_PATH)
LOCAL_CFLAGS += $(LIBISP_FLAGS) -lm -lc
 
LOCAL_MODULE := awTuningApp
 
#LOCAL_PROPRIETARY_MODULE := true
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
 
LOCAL_CFLAGS += -Wno-extern-c-compat -Wno-unused-variable -Wno-macro-redefined -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-warning-option -Wno-sign-compare -Wno-empty-body -Wno-pointer-arith -Wno-incompatible-pointer-types-discards-qualifiers
 
LOCAL_SRC_FILES := \
    tuning_app/awTuningApp.c \
    tuning_app/log_handle.c \
    tuning_app/socket_protocol.c \
    tuning_app/thread_pool.c \
    tuning_app/server/capture_image.c \
    tuning_app/server/isp_handle.c \
    tuning_app/server/mini_shell.c \
    tuning_app/server/server.c \
    tuning_app/server/server_api.c \
    tuning_app/server/server_core.c \
    tuning_app/server/register_opt.c \
    tuning_app/server/raw_flow_opt.c \
    ../libisp_new/isp_cfg/isp_ini_parse.c \
    ../libisp_new/isp.c \
    ../libisp_new/isp_events/events.c \
    ../libisp_new/isp_tuning/isp_tuning.c \
    ../libisp_new/isp_manage/isp_helper.c \
    ../libisp_new/isp_manage/isp_manage.c
 
LOCAL_C_INCLUDES += \
    $(LOCAL_PATH)/../libisp_new/include/V4l2Camera \
    $(LOCAL_PATH)/../libisp_new/include/device \
    $(LOCAL_PATH)/../libisp_new/include \
    $(LOCAL_PATH)/../libisp_new/isp_dev \
    $(LOCAL_PATH)/../libisp_new/isp_tuning \
    $(LOCAL_PATH)/../libisp_new/isp_cfg/SENSOR_H \
    $(LOCAL_PATH)/tuning_app \
    $(LOCAL_PATH)/tuning_app/server \
    system/core/include/utils \
    system/core/include/log \
    system/core/include \
    $(LOCAL_PATH)/
 
LOCAL_STATIC_LIBRARIES += \
    libiniparser \
    libisp_dev \
    libisp_math
 
LOCAL_LDFLAGS_32 += \
    $(LOCAL_PATH)/../libisp_new/out/libisp_algo.a
 
LOCAL_LDFLAGS_64 += \
    $(LOCAL_PATH)/../libisp_new/out_64/libisp_algo.a
 
LOCAL_SHARED_LIBRARIES += \
    libcutils libutils liblog
 
include $(BUILD_EXECUTABLE)
 
#########################################
 
#####---T509---
else ifeq (pluto,$(TARGET_BOARD_PLATFORM))
$(warning Use pluto awTuningApp!)
LIBISP_FLAGS = -Wall -Wno-unused-parameter -Wno-macro-redefined -Wno-unused-parameter -Wno-extra-tokens \
        -Wno-null-arithmetic -Wno-format -Wno-reorder -Wno-unused-variable -Wno-writable-strings \
        -Wno-logical-op-parentheses -Wno-sign-compare -Wno-unused-parameter -Wno-unused-value -Wno-incompatible-pointer-types \
        -Wno-unused-function -Wno-parentheses -Wno-extern-c-compat -Wno-null-conversion -Wno-error -Wno-date-time \
        -Wno-sometimes-uninitialized -Wno-gnu-designator -Wno-unused-label -Wno-pointer-arith -Wno-empty-body -fPIC
 
#########################################
 
ISP_PATH:= $(call my-dir)
include $(all-subdir-makefiles)
include $(CLEAR_VARS)
 
LOCAL_PATH := $(ISP_PATH)
LOCAL_CFLAGS += $(LIBISP_FLAGS) -lm -lc
 
LOCAL_MODULE := awTuningApp
 
#LOCAL_PROPRIETARY_MODULE := true
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
 
LOCAL_CFLAGS += -Wno-extern-c-compat -Wno-unused-variable -Wno-macro-redefined -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-warning-option -Wno-sign-compare -Wno-empty-body -Wno-pointer-arith -Wno-incompatible-pointer-types-discards-qualifiers
 
LOCAL_SRC_FILES := \
    tuning_app/awTuningApp.c \
    tuning_app/log_handle.c \
    tuning_app/socket_protocol.c \
    tuning_app/thread_pool.c \
    tuning_app/server/capture_image.c \
    tuning_app/server/isp_handle.c \
    tuning_app/server/mini_shell.c \
    tuning_app/server/server.c \
    tuning_app/server/server_api.c \
    tuning_app/server/server_core.c \
    tuning_app/server/register_opt.c \
    tuning_app/server/raw_flow_opt.c \
    ../libisp_new/isp_cfg/isp_ini_parse.c \
    ../libisp_new/isp.c \
    ../libisp_new/isp_events/events.c \
    ../libisp_new/isp_tuning/isp_tuning.c \
    ../libisp_new/isp_manage/isp_helper.c \
    ../libisp_new/isp_manage/isp_manage.c
 
LOCAL_C_INCLUDES += \
    $(LOCAL_PATH)/../libisp_new/include/V4l2Camera \
    $(LOCAL_PATH)/../libisp_new/include/device \
    $(LOCAL_PATH)/../libisp_new/include \
    $(LOCAL_PATH)/../libisp_new/isp_dev \
    $(LOCAL_PATH)/../libisp_new/isp_tuning \
    $(LOCAL_PATH)/../libisp_new/isp_cfg/SENSOR_H \
    $(LOCAL_PATH)/tuning_app \
    $(LOCAL_PATH)/tuning_app/server \
    system/core/include/utils \
    system/core/include/log \
    system/core/include \
    $(LOCAL_PATH)/
 
LOCAL_STATIC_LIBRARIES += \
    libiniparser \
    libisp_dev \
    libisp_math
 
LOCAL_LDFLAGS_32 += \
    $(LOCAL_PATH)/../libisp_new/out/libisp_algo.a
 
LOCAL_LDFLAGS_64 += \
    $(LOCAL_PATH)/../libisp_new/out_64/libisp_algo.a
 
LOCAL_SHARED_LIBRARIES += \
    libcutils libutils liblog
 
include $(BUILD_EXECUTABLE)
 
#########################################
endif