blob: 0a70837dbfd13396f65d4db42ddbfdfde5bf7f15
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 | BOARD_AML_VENDOR_PATH := vendor/amlogic/ampere/ |
59 | |
60 | BOARD_WIDEVINE_PATH := vendor/amlogic/ampere/ |
61 | |
62 | #AB_OTA_UPDATER :=true |
63 | |
64 | ifeq ($(AB_OTA_UPDATER),true) |
65 | AB_OTA_PARTITIONS := \ |
66 | boot \ |
67 | system |
68 | |
69 | ifneq ($(BOARD_OLD_PARTITION),true) |
70 | AB_OTA_PARTITIONS += \ |
71 | vendor \ |
72 | odm |
73 | endif |
74 | |
75 | TARGET_BOOTLOADER_CONTROL_BLOCK := true |
76 | TARGET_NO_RECOVERY := true |
77 | TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi |
78 | else |
79 | TARGET_NO_RECOVERY := false |
80 | |
81 | ifneq ($(BOARD_OLD_PARTITION),true) |
82 | TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi |
83 | else |
84 | TARGET_PARTITION_DTSI := partition_mbox_old.dtsi |
85 | endif |
86 | |
87 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
88 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
89 | endif |
90 | |
91 | #########Support compiling out encrypted zip/aml_upgrade_package.img directly |
92 | #PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true |
93 | PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/gxl_p212_v1/aml-user-key.sig |
94 | PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl |
95 | PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \ |
96 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \ |
97 | --aeskey enable |
98 | PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \ |
99 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
100 | PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \ |
101 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
102 | |
103 | ######################################################################## |
104 | # |
105 | # ATV |
106 | # |
107 | ######################################################################## |
108 | ifeq ($(BOARD_COMPILE_ATV),true) |
109 | BOARD_COMPILE_CTS := true |
110 | TARGET_BUILD_GOOGLE_ATV:= true |
111 | DONT_DEXPREOPT_PREBUILTS:= true |
112 | endif |
113 | ######################################################################## |
114 | |
115 | ######################################################################## |
116 | # |
117 | # CTS |
118 | # |
119 | ######################################################################## |
120 | ifeq ($(BOARD_COMPILE_CTS),true) |
121 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
122 | BOARD_PLAYREADY_LEVEL := 1 |
123 | TARGET_BUILD_CTS:= true |
124 | TARGET_BUILD_NETFLIX:= true |
125 | endif |
126 | ######################################################################## |
127 | |
128 | ######################################################################### |
129 | # |
130 | # Dm-Verity |
131 | # |
132 | ######################################################################### |
133 | #BUILD_WITH_DM_VERITY := true |
134 | #TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true |
135 | ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
136 | BUILD_WITH_DM_VERITY := true |
137 | endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
138 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
139 | PRODUCT_PACKAGES += \ |
140 | libfs_mgr \ |
141 | fs_mgr \ |
142 | slideshow |
143 | endif |
144 | ifneq ($(BOARD_OLD_PARTITION),true) |
145 | ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) |
146 | ifeq ($(AB_OTA_UPDATER),true) |
147 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
148 | PRODUCT_COPY_FILES += \ |
149 | device/amlogic/ampere/fstab.AB.verity.amlogic:root/fstab.amlogic |
150 | else |
151 | PRODUCT_COPY_FILES += \ |
152 | device/amlogic/ampere/fstab.AB.amlogic:root/fstab.amlogic |
153 | endif |
154 | else |
155 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
156 | PRODUCT_COPY_FILES += \ |
157 | device/amlogic/ampere/fstab.verity.amlogic:root/fstab.amlogic |
158 | else |
159 | PRODUCT_COPY_FILES += \ |
160 | device/amlogic/ampere/fstab.amlogic:root/fstab.amlogic |
161 | endif |
162 | endif |
163 | else |
164 | ifeq ($(AB_OTA_UPDATER),true) |
165 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
166 | PRODUCT_COPY_FILES += \ |
167 | device/amlogic/ampere/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic |
168 | else |
169 | PRODUCT_COPY_FILES += \ |
170 | device/amlogic/ampere/fstab.AB.amlogic:recovery/root/fstab.amlogic |
171 | endif |
172 | else |
173 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
174 | PRODUCT_COPY_FILES += \ |
175 | device/amlogic/ampere/fstab.verity.amlogic:recovery/root/fstab.amlogic |
176 | else |
177 | PRODUCT_COPY_FILES += \ |
178 | device/amlogic/ampere/fstab.amlogic:recovery/root/fstab.amlogic |
179 | endif |
180 | endif |
181 | endif |
182 | endif |
183 | ifeq ($(BOARD_OLD_PARTITION),true) |
184 | PRODUCT_COPY_FILES += \ |
185 | device/amlogic/ampere/fstab.3.14.amlogic:root/fstab.amlogic |
186 | endif |
187 | |
188 | ######################################################################### |
189 | # |
190 | # WiFi |
191 | # |
192 | ######################################################################### |
193 | |
194 | #MULTI_WIFI_SUPPORT := true |
195 | WIFI_MODULE := bcm4356 |
196 | WIFI_BUILD_IN := true |
197 | include device/amlogic/common/wifi.mk |
198 | |
199 | # Change this to match target country |
200 | # 11 North America; 14 Japan; 13 rest of world |
201 | PRODUCT_DEFAULT_WIFI_CHANNELS := 11 |
202 | |
203 | |
204 | ######################################################################### |
205 | # |
206 | # Bluetooth |
207 | # |
208 | ######################################################################### |
209 | |
210 | BOARD_HAVE_BLUETOOTH := true |
211 | BLUETOOTH_MODULE := bcm4356 |
212 | #MULTI_BLUETOOTH_SUPPORT := true |
213 | BCM_BLUETOOTH_LPM_ENABLE := true |
214 | include device/amlogic/common/bluetooth.mk |
215 | |
216 | |
217 | ######################################################################### |
218 | # |
219 | # ConsumerIr |
220 | # |
221 | ######################################################################### |
222 | |
223 | #PRODUCT_PACKAGES += \ |
224 | # consumerir.amlogic \ |
225 | # SmartRemote |
226 | #PRODUCT_COPY_FILES += \ |
227 | # frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml |
228 | |
229 | |
230 | #PRODUCT_PACKAGES += libbt-vendor |
231 | |
232 | ifeq ($(SUPPORT_HDMIIN),true) |
233 | PRODUCT_PACKAGES += \ |
234 | libhdmiin \ |
235 | HdmiIn |
236 | endif |
237 | |
238 | PRODUCT_COPY_FILES += \ |
239 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml |
240 | |
241 | # Audio |
242 | # |
243 | BOARD_ALSA_AUDIO=tiny |
244 | include device/amlogic/common/audio.mk |
245 | |
246 | ######################################################################### |
247 | # |
248 | # Camera |
249 | # |
250 | ######################################################################### |
251 | |
252 | ifneq ($(TARGET_BUILD_CTS), true) |
253 | PRODUCT_COPY_FILES += \ |
254 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
255 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml |
256 | endif |
257 | |
258 | |
259 | |
260 | ######################################################################### |
261 | # |
262 | # PlayReady DRM |
263 | # |
264 | ######################################################################### |
265 | #export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP |
266 | #export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP |
267 | ######################################################################### |
268 | # |
269 | # Verimatrix DRM |
270 | ########################################################################## |
271 | #verimatrix web |
272 | BUILD_WITH_VIEWRIGHT_WEB := false |
273 | #verimatrix stb |
274 | BUILD_WITH_VIEWRIGHT_STB := false |
275 | ######################################################################### |
276 | |
277 | |
278 | #DRM Widevine |
279 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),) |
280 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3 |
281 | endif |
282 | |
283 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1) |
284 | TARGET_USE_OPTEEOS := true |
285 | TARGET_ENABLE_TA_SIGN := true |
286 | TARGET_USE_HW_KEYMASTER := true |
287 | endif |
288 | |
289 | $(call inherit-product, device/amlogic/common/media.mk) |
290 | |
291 | ######################################################################### |
292 | # |
293 | # Languages |
294 | # |
295 | ######################################################################### |
296 | |
297 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
298 | 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 \ |
299 | 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 \ |
300 | 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 \ |
301 | 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 \ |
302 | 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 \ |
303 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
304 | |
305 | ################################################################################# |
306 | # |
307 | # PPPOE |
308 | # |
309 | ################################################################################# |
310 | #ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
311 | #BUILD_WITH_PPPOE := true |
312 | #endif |
313 | |
314 | ifeq ($(BUILD_WITH_PPPOE),true) |
315 | PRODUCT_PACKAGES += \ |
316 | PPPoE \ |
317 | libpppoejni \ |
318 | libpppoe \ |
319 | pppoe_wrapper \ |
320 | pppoe \ |
321 | droidlogic.frameworks.pppoe \ |
322 | droidlogic.external.pppoe \ |
323 | droidlogic.software.pppoe.xml |
324 | PRODUCT_PROPERTY_OVERRIDES += \ |
325 | ro.platform.has.pppoe=true |
326 | endif |
327 | |
328 | ################################################################################# |
329 | # |
330 | # DEFAULT LOWMEMORYKILLER CONFIG |
331 | # |
332 | ################################################################################# |
333 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
334 | |
335 | BOARD_USES_USB_PM := true |
336 | |
337 | PRODUCT_COPY_FILES += \ |
338 | $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \ |
339 | |
340 | include device/amlogic/common/software.mk |
341 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
342 | PRODUCT_PROPERTY_OVERRIDES += \ |
343 | ro.sf.lcd_density=320 |
344 | else |
345 | PRODUCT_PROPERTY_OVERRIDES += \ |
346 | ro.sf.lcd_density=240 |
347 | endif |
348 | |
349 | |
350 | ######################################################################### |
351 | # |
352 | # A/B update |
353 | # |
354 | ######################################################################### |
355 | ifeq ($(AB_OTA_UPDATER),true) |
356 | PRODUCT_PACKAGES += \ |
357 | bootctrl.amlogic \ |
358 | bootctl |
359 | |
360 | PRODUCT_PACKAGES += \ |
361 | update_engine \ |
362 | update_engine_client \ |
363 | update_verifier \ |
364 | delta_generator \ |
365 | brillo_update_payload \ |
366 | android.hardware.boot@1.0-impl \ |
367 | android.hardware.boot@1.0-service |
368 | endif |
369 | ######################################################################### |
370 | # |
371 | # OpenGLES Version |
372 | # |
373 | ######################################################################### |
374 | PRODUCT_PROPERTY_OVERRIDES += \ |
375 | ro.opengles.version=131072 |
376 |