-
Notifications
You must be signed in to change notification settings - Fork 39
/
BoardConfigCFlags.mk
175 lines (138 loc) · 3.82 KB
/
BoardConfigCFlags.mk
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
ifeq ($(BOARD_USES_FIMGAPI_V5X), true)
LOCAL_CFLAGS += -DFIMGAPI_V5X
ifeq ($(BOARD_USES_FIMG2D_M2M1SHOT2), true)
LOCAL_CFLAGS += -DFIMG2D_USE_M2M1SHOT2
endif
endif
ifeq ($(BOARD_G2D_NEAREST_UNSUPPORT), true)
LOCAL_CFLAGS += -DFIMGAPI_G2D_NEAREST_UNSUPPORT
endif
ifeq ($(BOARD_DYNAMIC_RECOMPOSITION_DISABLED), true)
LOCAL_CFLAGS += -DDYNAMIC_RECOMPOSITION_DISABLED
endif
ifeq ($(TARGET_USES_UNIVERSAL_LIBHWJPEG), true)
LOCAL_CFLAGS += -DUSES_UNIVERSAL_LIBHWJPEG
endif
ifeq ($(BOARD_USES_FIMC), true)
LOCAL_CFLAGS += -DUSES_FIMC
else
LOCAL_CFLAGS += -DUSES_GSCALER
endif
ifeq ($(BOARD_USES_IP_SERVICE), true)
LOCAL_CFLAGS += -DIP_SERVICE
endif
ifeq ($(BOARD_USES_HWC_SERVICES),true)
LOCAL_CFLAGS += -DHWC_SERVICES
ifeq ($(BOARD_USE_S3D_SUPPORT),true)
LOCAL_CFLAGS += -DS3D_SUPPORT
endif
endif
ifeq ($(BOARD_USES_WFD),true)
LOCAL_CFLAGS += -DUSES_WFD
endif
ifeq ($(BOARD_USES_VIRTUAL_DISPLAY), true)
LOCAL_CFLAGS += -DUSES_VIRTUAL_DISPLAY
endif
ifeq ($(BOARD_USES_DISABLE_COMPOSITIONTYPE_GLES), true)
LOCAL_CFLAGS += -DUSES_DISABLE_COMPOSITIONTYPE_GLES
endif
ifeq ($(BOARD_USES_VDS_YUV420SPM), true)
LOCAL_CFLAGS += -DUSES_VDS_YUV420SPM
endif
ifeq ($(BOARD_USES_VIRTUAL_DISPLAY_DECON_EXT_WB), true)
LOCAL_CFLAGS += -DUSES_VIRTUAL_DISPLAY_DECON_EXT_WB
endif
ifeq ($(BOARD_USE_VIDEO_EXT_FOR_WFD_DRM), true)
LOCAL_CFLAGS += -DUSE_VIDEO_EXT_FOR_WFD_DRM
endif
ifeq ($(BOARD_USES_OVERLAY_FOR_WFD_UI_MIRROR), true)
LOCAL_CFLAGS += -DUSES_OVERLAY_FOR_WFD_UI_MIRROR
endif
ifeq ($(BOARD_USES_3MSC_FOR_WFD), true)
LOCAL_CFLAGS += -DUSES_3MSC_FOR_WFD
endif
ifeq ($(BOARD_USES_2MSC_FOR_WFD), true)
LOCAL_CFLAGS += -DUSES_2MSC_FOR_WFD
endif
ifeq ($(BOARD_USES_VDS_BGRA8888), true)
LOCAL_CFLAGS += -DUSES_VDS_BGRA8888
endif
ifeq ($(BOARD_VIRTUAL_DISPLAY_VIDEO_IS_OVERLAY), true)
LOCAL_CFLAGS += -DVIRTUAL_DISPLAY_VIDEO_IS_OVERLAY
endif
ifeq ($(BOARD_USES_VDS_OTHERFORMAT), true)
LOCAL_CFLAGS += -DUSES_VDS_OTHERFORMAT
endif
ifeq ($(BOARD_USES_FB_PHY_LINEAR),true)
LOCAL_CFLAGS += -DUSE_FB_PHY_LINEAR
endif
ifeq ($(BOARD_TV_PRIMARY),true)
LOCAL_CFLAGS += -DTV_PRIMARY
endif
ifeq ($(BOARD_HDMI_INCAPABLE), true)
LOCAL_CFLAGS += -DHDMI_INCAPABLE
else
ifeq ($(BOARD_USES_NEW_HDMI), true)
LOCAL_CFLAGS += -DUSES_NEW_HDMI
endif
ifeq ($(BOARD_USES_GSC_VIDEO), true)
LOCAL_CFLAGS += -DGSC_VIDEO
endif
ifeq ($(BOARD_USES_VP_VIDEO),true)
LOCAL_CFLAGS += -DVP_VIDEO
endif
ifeq ($(BOARD_USES_CEC),true)
LOCAL_CFLAGS += -DUSES_CEC
endif
endif
ifeq ($(BOARD_SUPPORT_DQ_Q_SEQUENCE), true)
LOCAL_CFLAGS += -DSUPPORT_DQ_Q_SEQUENCE
endif
ifeq ($(BOARD_USES_ONLY_GSC0_GSC1),true)
LOCAL_CFLAGS += -DUSES_ONLY_GSC0_GSC1
endif
ifeq ($(BOARD_USES_DT), true)
LOCAL_CFLAGS += -DUSES_DT
endif
ifeq ($(BOARD_USES_U4A),true)
LOCAL_CFLAGS += -DUSES_U4A
endif
ifeq ($(BOARD_USES_WINDOW_UPDATE), true)
LOCAL_CFLAGS += -DUSES_WINDOW_UPDATE
endif
ifeq ($(BOARD_USES_VPP), true)
LOCAL_CFLAGS += -DUSES_VPP
endif
ifeq ($(BOARD_USES_VPP_V2), true)
LOCAL_CFLAGS += -DUSES_VPP_V2
endif
ifeq ($(TARGET_SOC), exynos8890)
LOCAL_CFLAGS += -DUSES_DECON_AFBC_DECODER
endif
ifeq ($(TARGET_SOC), exynos5433)
LOCAL_CFLAGS += -DTARGET_SOC_EXYNOS5433
endif
ifeq ($(TARGET_SOC), exynos5433)
LOCAL_CFLAGS += -DUSES_DRM_SETTING_BY_DECON
endif
ifeq ($(TARGET_SOC), exynos5430)
LOCAL_CFLAGS += -DUSES_DRM_SETTING_BY_DECON
endif
ifeq ($(TARGET_SOC), exynos5420)
LOCAL_CFLAGS += -DUSES_DRM_SETTING_BY_DECON
endif
ifeq ($(BOARD_USE_GRALLOC_FLAG_FOR_HDMI), true)
LOCAL_CFLAGS += -DUSE_GRALLOC_FLAG_FOR_HDMI
endif
ifeq ($(BOARD_USE_HDMI_ON_IN_SUSPEND), true)
LOCAL_CFLAGS += -DHDMI_ON_IN_SUSPEND
endif
ifeq ($(BOARD_USES_DUAL_DISPLAY), true)
LOCAL_CFLAGS += -DUSES_DUAL_DISPLAY
endif
ifeq ($(TARGET_ARCH), arm64)
LOCAL_CFLAGS += -DUSES_ARCH_ARM64
endif
ifeq ($(BOARD_USES_DECON_64BIT_ADDRESS), true)
LOCAL_CFLAGS += -DUSES_DECON_64BIT_ADDRESS
endif