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