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