blob: 37e92a322490efa79fcdd700f65d8e52508971d5
1 | # Copyright (C) 2011 Amlogic Inc |
2 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | # you may not use this file except in compliance with the License. |
5 | # You may obtain a copy of the License at |
6 | # |
7 | # http://www.apache.org/licenses/LICENSE-2.0 |
8 | # |
9 | # Unless required by applicable law or agreed to in writing, software |
10 | # distributed under the License is distributed on an "AS IS" BASIS, |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. |
14 | |
15 | # |
16 | # This file is the build configuration for a full Android |
17 | # build for Meson reference board. |
18 | # |
19 | |
20 | ANDROID_BUILD_TYPE := 64 |
21 | |
22 | # Dynamic enable start/stop zygote_secondary in 64bits |
23 | # and 32bit system, default closed |
24 | #TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true |
25 | |
26 | # Inherit from those products. Most specific first. |
27 | ifneq ($(ANDROID_BUILD_TYPE), 32) |
28 | ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true) |
29 | $(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk) |
30 | else |
31 | $(call inherit-product, build/target/product/core_64_bit.mk) |
32 | endif |
33 | endif |
34 | |
35 | $(call inherit-product, device/amlogic/common/products/mbox/product_mbox.mk) |
36 | $(call inherit-product, device/amlogic/ampere/device.mk) |
37 | $(call inherit-product-if-exists, vendor/google/products/gms.mk) |
38 | |
39 | # ampere: |
40 | PRODUCT_PROPERTY_OVERRIDES += \ |
41 | ro.hdmi.device_type=4 \ |
42 | persist.sys.hdmi.keep_awake=false |
43 | |
44 | PRODUCT_NAME := ampere |
45 | PRODUCT_DEVICE := ampere |
46 | PRODUCT_BRAND := Amlogic |
47 | PRODUCT_MODEL := ampere |
48 | PRODUCT_MANUFACTURER := Amlogic |
49 | |
50 | PRODUCT_TYPE := mbox |
51 | |
52 | #BOARD_OLD_PARTITION := true |
53 | |
54 | WITH_LIBPLAYER_MODULE := false |
55 | |
56 | OTA_UP_PART_NUM_CHANGED := true |
57 | |
58 | #AB_OTA_UPDATER :=true |
59 | |
60 | ifeq ($(AB_OTA_UPDATER),true) |
61 | AB_OTA_PARTITIONS := \ |
62 | boot \ |
63 | system |
64 | |
65 | ifneq ($(BOARD_OLD_PARTITION),true) |
66 | AB_OTA_PARTITIONS += \ |
67 | vendor \ |
68 | odm |
69 | endif |
70 | |
71 | TARGET_BOOTLOADER_CONTROL_BLOCK := true |
72 | TARGET_NO_RECOVERY := true |
73 | TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi |
74 | else |
75 | TARGET_NO_RECOVERY := false |
76 | |
77 | ifneq ($(BOARD_OLD_PARTITION),true) |
78 | TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi |
79 | else |
80 | TARGET_PARTITION_DTSI := partition_mbox_old.dtsi |
81 | endif |
82 | |
83 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
84 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
85 | endif |
86 | |
87 | #########Support compiling out encrypted zip/aml_upgrade_package.img directly |
88 | #PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true |
89 | PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/gxl_p212_v1/aml-user-key.sig |
90 | PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl |
91 | PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \ |
92 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \ |
93 | --aeskey enable |
94 | PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \ |
95 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
96 | PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \ |
97 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
98 | |
99 | ######################################################################## |
100 | # |
101 | # ATV |
102 | # |
103 | ######################################################################## |
104 | ifeq ($(BOARD_COMPILE_ATV),true) |
105 | BOARD_COMPILE_CTS := true |
106 | TARGET_BUILD_GOOGLE_ATV:= true |
107 | DONT_DEXPREOPT_PREBUILTS:= true |
108 | endif |
109 | ######################################################################## |
110 | |
111 | ######################################################################## |
112 | # |
113 | # CTS |
114 | # |
115 | ######################################################################## |
116 | ifeq ($(BOARD_COMPILE_CTS),true) |
117 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
118 | BOARD_PLAYREADY_LEVEL := 1 |
119 | TARGET_BUILD_CTS:= true |
120 | TARGET_BUILD_NETFLIX:= true |
121 | endif |
122 | ######################################################################## |
123 | |
124 | ######################################################################### |
125 | # |
126 | # Dm-Verity |
127 | # |
128 | ######################################################################### |
129 | #BUILD_WITH_DM_VERITY := true |
130 | #TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true |
131 | ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
132 | BUILD_WITH_DM_VERITY := true |
133 | endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
134 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
135 | PRODUCT_PACKAGES += \ |
136 | libfs_mgr \ |
137 | fs_mgr \ |
138 | slideshow |
139 | endif |
140 | ifneq ($(BOARD_OLD_PARTITION),true) |
141 | ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) |
142 | ifeq ($(AB_OTA_UPDATER),true) |
143 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
144 | PRODUCT_COPY_FILES += \ |
145 | device/amlogic/ampere/fstab.AB.verity.amlogic:root/fstab.amlogic |
146 | else |
147 | PRODUCT_COPY_FILES += \ |
148 | device/amlogic/ampere/fstab.AB.amlogic:root/fstab.amlogic |
149 | endif |
150 | else |
151 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
152 | PRODUCT_COPY_FILES += \ |
153 | device/amlogic/ampere/fstab.verity.amlogic:root/fstab.amlogic |
154 | else |
155 | PRODUCT_COPY_FILES += \ |
156 | device/amlogic/ampere/fstab.amlogic:root/fstab.amlogic |
157 | endif |
158 | endif |
159 | else |
160 | ifeq ($(AB_OTA_UPDATER),true) |
161 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
162 | PRODUCT_COPY_FILES += \ |
163 | device/amlogic/ampere/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic |
164 | else |
165 | PRODUCT_COPY_FILES += \ |
166 | device/amlogic/ampere/fstab.AB.amlogic:recovery/root/fstab.amlogic |
167 | endif |
168 | else |
169 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
170 | PRODUCT_COPY_FILES += \ |
171 | device/amlogic/ampere/fstab.verity.amlogic:recovery/root/fstab.amlogic |
172 | else |
173 | PRODUCT_COPY_FILES += \ |
174 | device/amlogic/ampere/fstab.amlogic:recovery/root/fstab.amlogic |
175 | endif |
176 | endif |
177 | endif |
178 | endif |
179 | ifeq ($(BOARD_OLD_PARTITION),true) |
180 | PRODUCT_COPY_FILES += \ |
181 | device/amlogic/ampere/fstab.3.14.amlogic:root/fstab.amlogic |
182 | endif |
183 | |
184 | ######################################################################### |
185 | # |
186 | # WiFi |
187 | # |
188 | ######################################################################### |
189 | |
190 | #MULTI_WIFI_SUPPORT := true |
191 | WIFI_MODULE := bcm4356 |
192 | WIFI_BUILD_IN := true |
193 | include device/amlogic/common/wifi.mk |
194 | |
195 | # Change this to match target country |
196 | # 11 North America; 14 Japan; 13 rest of world |
197 | PRODUCT_DEFAULT_WIFI_CHANNELS := 11 |
198 | |
199 | |
200 | ######################################################################### |
201 | # |
202 | # Bluetooth |
203 | # |
204 | ######################################################################### |
205 | |
206 | BOARD_HAVE_BLUETOOTH := true |
207 | BLUETOOTH_MODULE := bcm4356 |
208 | #MULTI_BLUETOOTH_SUPPORT := true |
209 | BCM_BLUETOOTH_LPM_ENABLE := true |
210 | include device/amlogic/common/bluetooth.mk |
211 | |
212 | |
213 | ######################################################################### |
214 | # |
215 | # ConsumerIr |
216 | # |
217 | ######################################################################### |
218 | |
219 | #PRODUCT_PACKAGES += \ |
220 | # consumerir.amlogic \ |
221 | # SmartRemote |
222 | #PRODUCT_COPY_FILES += \ |
223 | # frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml |
224 | |
225 | |
226 | #PRODUCT_PACKAGES += libbt-vendor |
227 | |
228 | ifeq ($(SUPPORT_HDMIIN),true) |
229 | PRODUCT_PACKAGES += \ |
230 | libhdmiin \ |
231 | HdmiIn |
232 | endif |
233 | |
234 | PRODUCT_COPY_FILES += \ |
235 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml |
236 | |
237 | # Audio |
238 | # |
239 | BOARD_ALSA_AUDIO=tiny |
240 | include device/amlogic/common/audio.mk |
241 | |
242 | ######################################################################### |
243 | # |
244 | # Camera |
245 | # |
246 | ######################################################################### |
247 | |
248 | ifneq ($(TARGET_BUILD_CTS), true) |
249 | PRODUCT_COPY_FILES += \ |
250 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
251 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml |
252 | endif |
253 | |
254 | |
255 | |
256 | ######################################################################### |
257 | # |
258 | # PlayReady DRM |
259 | # |
260 | ######################################################################### |
261 | #export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP |
262 | #export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP |
263 | ######################################################################### |
264 | # |
265 | # Verimatrix DRM |
266 | ########################################################################## |
267 | #verimatrix web |
268 | BUILD_WITH_VIEWRIGHT_WEB := false |
269 | #verimatrix stb |
270 | BUILD_WITH_VIEWRIGHT_STB := false |
271 | ######################################################################### |
272 | |
273 | |
274 | #DRM Widevine |
275 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),) |
276 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3 |
277 | endif |
278 | |
279 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1) |
280 | TARGET_USE_OPTEEOS := true |
281 | TARGET_ENABLE_TA_SIGN := true |
282 | TARGET_USE_HW_KEYMASTER := true |
283 | endif |
284 | |
285 | $(call inherit-product, device/amlogic/common/media.mk) |
286 | |
287 | ######################################################################### |
288 | # |
289 | # Languages |
290 | # |
291 | ######################################################################### |
292 | |
293 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
294 | PRODUCT_LOCALES := en_US en_AU en_IN fr_FR it_IT es_ES et_EE de_DE nl_NL cs_CZ pl_PL ja_JP \ |
295 | zh_TW zh_CN zh_HK ru_RU ko_KR nb_NO es_US da_DK el_GR tr_TR pt_PT pt_BR rm_CH sv_SE bg_BG \ |
296 | ca_ES en_GB fi_FI hi_IN hr_HR hu_HU in_ID iw_IL lt_LT lv_LV ro_RO sk_SK sl_SI sr_RS uk_UA \ |
297 | vi_VN tl_PH ar_EG fa_IR th_TH sw_TZ ms_MY af_ZA zu_ZA am_ET hi_IN en_XA ar_XB fr_CA km_KH \ |
298 | lo_LA ne_NP si_LK mn_MN hy_AM az_AZ ka_GE my_MM mr_IN ml_IN is_IS mk_MK ky_KG eu_ES gl_ES \ |
299 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
300 | |
301 | ################################################################################# |
302 | # |
303 | # PPPOE |
304 | # |
305 | ################################################################################# |
306 | #ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
307 | #BUILD_WITH_PPPOE := true |
308 | #endif |
309 | |
310 | ifeq ($(BUILD_WITH_PPPOE),true) |
311 | PRODUCT_PACKAGES += \ |
312 | PPPoE \ |
313 | libpppoejni \ |
314 | libpppoe \ |
315 | pppoe_wrapper \ |
316 | pppoe \ |
317 | droidlogic.frameworks.pppoe \ |
318 | droidlogic.external.pppoe \ |
319 | droidlogic.software.pppoe.xml |
320 | PRODUCT_PROPERTY_OVERRIDES += \ |
321 | ro.platform.has.pppoe=true |
322 | endif |
323 | |
324 | ################################################################################# |
325 | # |
326 | # DEFAULT LOWMEMORYKILLER CONFIG |
327 | # |
328 | ################################################################################# |
329 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
330 | |
331 | BOARD_USES_USB_PM := true |
332 | |
333 | PRODUCT_COPY_FILES += \ |
334 | $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \ |
335 | |
336 | include device/amlogic/common/software.mk |
337 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
338 | PRODUCT_PROPERTY_OVERRIDES += \ |
339 | ro.sf.lcd_density=320 |
340 | else |
341 | PRODUCT_PROPERTY_OVERRIDES += \ |
342 | ro.sf.lcd_density=240 |
343 | endif |
344 | |
345 | |
346 | ######################################################################### |
347 | # |
348 | # A/B update |
349 | # |
350 | ######################################################################### |
351 | ifeq ($(AB_OTA_UPDATER),true) |
352 | PRODUCT_PACKAGES += \ |
353 | bootctrl.amlogic \ |
354 | bootctl |
355 | |
356 | PRODUCT_PACKAGES += \ |
357 | update_engine \ |
358 | update_engine_client \ |
359 | update_verifier \ |
360 | delta_generator \ |
361 | brillo_update_payload \ |
362 | android.hardware.boot@1.0-impl \ |
363 | android.hardware.boot@1.0-service |
364 | endif |
365 | ######################################################################### |
366 | # |
367 | # OpenGLES Version |
368 | # |
369 | ######################################################################### |
370 | PRODUCT_PROPERTY_OVERRIDES += \ |
371 | ro.opengles.version=131072 |
372 |