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