-
Notifications
You must be signed in to change notification settings - Fork 8
/
BoardConfigCFlags.mk
184 lines (145 loc) · 3.92 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
176
177
178
179
180
181
182
183
184
LOCAL_PROPRIETARY_MODULE := true
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 ($(HWC_SKIP_VALIDATE),true)
LOCAL_CFLAGS += -DHWC_SKIP_VALIDATE
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_VIRTUAL_DISPLAY_DECON_EXT_WB), true)
LOCAL_CFLAGS += -DUSES_VIRTUAL_DISPLAY_DECON_EXT_WB
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_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
ifeq ($(BOARD_HDMI_PRIMARY_DISPLAY), true)
LOCAL_CFLAGS += -DHDMI_PRIMARY_DISPLAY
endif
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
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_DPU), true)
LOCAL_CFLAGS += -DUSES_DPU
endif
ifeq ($(BOARD_USES_HWC2_TINY), true)
LOCAL_CFLAGS += -DUSES_HWC2_TINY
endif
ifeq ($(TARGET_USES_HWC2), true)
LOCAL_CFLAGS += -DTARGET_USES_HWC2
endif
ifeq ($(BOARD_USES_HWC2), true)
LOCAL_CFLAGS += -DUSES_HWC2
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), exynos7570)
LOCAL_CFLAGS += -DUSES_EXYNOS7570
endif
ifeq ($(TARGET_SOC), exynos7870)
LOCAL_CFLAGS += -DUSES_EXYNOS7870
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
ifeq ($(BOARD_USES_EXYNOS_AFBC_FEATURE), true)
LOCAL_CFLAGS += -DUSES_AFBC_FEATURE
endif
ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION), 1)
LOCAL_CFLAGS += -DGRALLOC_VERSION1
endif
ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION), 3)
LOCAL_CFLAGS += -DGRALLOC_VERSION1
LOCAL_CFLAGS += -DGRALLOC_VERSION3
endif
ifeq ($(BOARD_USES_EXYNOS_GRALLOC_VERSION), 4)
LOCAL_CFLAGS += -DGRALLOC_VERSION1
LOCAL_CFLAGS += -DGRALLOC_VERSION3
endif
ifeq ($(BOARD_USES_EXYNOS_FIMG4X), true)
LOCAL_CFLAGS += -DUSES_FIMG4X_BLIT
else
ifeq ($(BOARD_USES_EXYNOS_FIMG5X), true)
LOCAL_CFLAGS += -DUSES_FIMG5X_BLIT
endif
endif
ifeq ($(BOARD_USES_EXTERNAL_DISPLAY_POWERMODE), true)
LOCAL_CFLAGS += -DUSES_EXTERNAL_DISPLAY_POWERMODE
endif
ifeq ($(BOARD_USES_HDRUI_GLES_CONVERSION), true)
LOCAL_CFLAGS += -DUSES_HDR_GLES_CONVERSION
endif
ifeq ($(BOARD_USE_FULL_ST2094_40), true)
LOCAL_CFLAGS += -DUSE_FULL_ST2094_40
endif