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