blob: 80ac11bf7823f0cf1e5da1da22b617199f2bd12a
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 | # ATV |
120 | # |
121 | ######################################################################## |
122 | ifneq ($(BOARD_COMPILE_ATV),false) |
123 | BOARD_COMPILE_CTS := true |
124 | TARGET_BUILD_GOOGLE_ATV:= true |
125 | DONT_DEXPREOPT_PREBUILTS:= true |
126 | endif |
127 | ######################################################################## |
128 | |
129 | |
130 | ######################################################################## |
131 | # |
132 | # Live TV |
133 | # |
134 | ######################################################################## |
135 | ifneq ($(TARGET_BUILD_GOOGLE_ATV),true) |
136 | TARGET_BUILD_LIVETV := true |
137 | endif |
138 | |
139 | ######################################################################## |
140 | # |
141 | # CTS |
142 | # |
143 | ######################################################################## |
144 | ifeq ($(BOARD_COMPILE_CTS),true) |
145 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
146 | BOARD_PLAYREADY_LEVEL := 1 |
147 | TARGET_BUILD_CTS:= true |
148 | TARGET_BUILD_NETFLIX:= true |
149 | endif |
150 | ######################################################################## |
151 | |
152 | ######################################################################### |
153 | # |
154 | # Dm-Verity |
155 | # |
156 | ######################################################################### |
157 | #BUILD_WITH_DM_VERITY := true |
158 | #TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true |
159 | ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
160 | BUILD_WITH_DM_VERITY := true |
161 | endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
162 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
163 | PRODUCT_PACKAGES += \ |
164 | libfs_mgr \ |
165 | fs_mgr \ |
166 | slideshow |
167 | endif |
168 | ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) |
169 | ifeq ($(AB_OTA_UPDATER),true) |
170 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
171 | PRODUCT_COPY_FILES += \ |
172 | device/amlogic/einstein/fstab.AB.verity.amlogic:root/fstab.amlogic |
173 | else |
174 | PRODUCT_COPY_FILES += \ |
175 | device/amlogic/einstein/fstab.AB.amlogic:root/fstab.amlogic |
176 | endif |
177 | else |
178 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
179 | PRODUCT_COPY_FILES += \ |
180 | device/amlogic/einstein/fstab.verity.amlogic:root/fstab.amlogic |
181 | else |
182 | PRODUCT_COPY_FILES += \ |
183 | device/amlogic/einstein/fstab.amlogic:root/fstab.amlogic |
184 | endif |
185 | endif |
186 | else |
187 | ifeq ($(AB_OTA_UPDATER),true) |
188 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
189 | PRODUCT_COPY_FILES += \ |
190 | device/amlogic/einstein/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic |
191 | else |
192 | PRODUCT_COPY_FILES += \ |
193 | device/amlogic/einstein/fstab.AB.amlogic:recovery/root/fstab.amlogic |
194 | endif |
195 | else |
196 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
197 | PRODUCT_COPY_FILES += \ |
198 | device/amlogic/einstein/fstab.verity.amlogic:recovery/root/fstab.amlogic |
199 | else |
200 | PRODUCT_COPY_FILES += \ |
201 | device/amlogic/einstein/fstab.amlogic:recovery/root/fstab.amlogic |
202 | endif |
203 | endif |
204 | endif |
205 | |
206 | ######################################################################### |
207 | # |
208 | # WiFi |
209 | # |
210 | ######################################################################### |
211 | |
212 | WIFI_MODULE := AP62x8 |
213 | WIFI_BUILD_IN := true |
214 | include device/amlogic/common/wifi.mk |
215 | |
216 | # Change this to match target country |
217 | # 11 North America; 14 Japan; 13 rest of world |
218 | PRODUCT_DEFAULT_WIFI_CHANNELS := 11 |
219 | |
220 | ######################################################################### |
221 | # |
222 | # Bluetooth |
223 | # |
224 | ######################################################################### |
225 | |
226 | BOARD_HAVE_BLUETOOTH := true |
227 | BLUETOOTH_MODULE := AP62x8 |
228 | BCM_BLUETOOTH_LPM_ENABLE := true |
229 | include device/amlogic/common/bluetooth.mk |
230 | |
231 | |
232 | ######################################################################### |
233 | # |
234 | # ConsumerIr |
235 | # |
236 | ######################################################################### |
237 | |
238 | #PRODUCT_PACKAGES += \ |
239 | # consumerir.amlogic \ |
240 | # SmartRemote |
241 | #PRODUCT_COPY_FILES += \ |
242 | # frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml |
243 | |
244 | |
245 | #PRODUCT_PACKAGES += libbt-vendor |
246 | |
247 | ifeq ($(SUPPORT_HDMIIN),true) |
248 | PRODUCT_PACKAGES += \ |
249 | libhdmiin \ |
250 | HdmiIn |
251 | endif |
252 | |
253 | PRODUCT_COPY_FILES += \ |
254 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml |
255 | |
256 | # Audio |
257 | # |
258 | BOARD_ALSA_AUDIO=tiny |
259 | include device/amlogic/common/audio.mk |
260 | |
261 | ######################################################################### |
262 | # |
263 | # Camera |
264 | # |
265 | ######################################################################### |
266 | |
267 | ifneq ($(TARGET_BUILD_CTS), true) |
268 | PRODUCT_COPY_FILES += \ |
269 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
270 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml |
271 | endif |
272 | |
273 | |
274 | |
275 | ######################################################################### |
276 | # |
277 | # PlayReady DRM |
278 | # |
279 | ######################################################################### |
280 | #export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP |
281 | #export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP |
282 | ######################################################################### |
283 | # |
284 | # Verimatrix DRM |
285 | ########################################################################## |
286 | #verimatrix web |
287 | BUILD_WITH_VIEWRIGHT_WEB := false |
288 | #verimatrix stb |
289 | BUILD_WITH_VIEWRIGHT_STB := false |
290 | ######################################################################### |
291 | |
292 | |
293 | #DRM Widevine |
294 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),) |
295 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3 |
296 | endif |
297 | |
298 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1) |
299 | TARGET_USE_OPTEEOS := true |
300 | TARGET_ENABLE_TA_SIGN := true |
301 | TARGET_USE_HW_KEYMASTER := true |
302 | endif |
303 | |
304 | $(call inherit-product, device/amlogic/common/media.mk) |
305 | |
306 | ######################################################################### |
307 | # |
308 | # Languages |
309 | # |
310 | ######################################################################### |
311 | |
312 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
313 | 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 \ |
314 | 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 \ |
315 | 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 \ |
316 | 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 \ |
317 | 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 \ |
318 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
319 | |
320 | ################################################################################# |
321 | # |
322 | # PPPOE |
323 | # |
324 | ################################################################################# |
325 | #ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
326 | #BUILD_WITH_PPPOE := false |
327 | #endif |
328 | |
329 | ifeq ($(BUILD_WITH_PPPOE),true) |
330 | PRODUCT_PACKAGES += \ |
331 | PPPoE \ |
332 | libpppoejni \ |
333 | libpppoe \ |
334 | pppoe_wrapper \ |
335 | pppoe \ |
336 | droidlogic.frameworks.pppoe \ |
337 | droidlogic.external.pppoe \ |
338 | droidlogic.software.pppoe.xml |
339 | PRODUCT_PROPERTY_OVERRIDES += \ |
340 | ro.platform.has.pppoe=true |
341 | endif |
342 | |
343 | ################################################################################# |
344 | # |
345 | # DEFAULT LOWMEMORYKILLER CONFIG |
346 | # |
347 | ################################################################################# |
348 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
349 | |
350 | BOARD_USES_USB_PM := true |
351 | |
352 | |
353 | include device/amlogic/common/software.mk |
354 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
355 | PRODUCT_PROPERTY_OVERRIDES += \ |
356 | ro.sf.lcd_density=320 |
357 | else |
358 | PRODUCT_PROPERTY_OVERRIDES += \ |
359 | ro.sf.lcd_density=240 |
360 | endif |
361 | |
362 | # hdcp_tx22 |
363 | PRODUCT_COPY_FILES += \ |
364 | device/amlogic/common/hdcp_tx22/hdcp_tx22:vendor/bin/hdcp_tx22 |
365 | |
366 | ######################################################################### |
367 | # |
368 | # A/B update |
369 | # |
370 | ######################################################################### |
371 | ifeq ($(AB_OTA_UPDATER),true) |
372 | PRODUCT_PACKAGES += \ |
373 | bootctrl.amlogic \ |
374 | bootctl |
375 | |
376 | PRODUCT_PACKAGES += \ |
377 | update_engine \ |
378 | update_engine_client \ |
379 | update_verifier \ |
380 | delta_generator \ |
381 | brillo_update_payload \ |
382 | android.hardware.boot@1.0-impl \ |
383 | android.hardware.boot@1.0-service |
384 | endif |
385 | ######################################################################### |
386 | # |
387 | # OpenGLES Version |
388 | # |
389 | ######################################################################### |
390 | PRODUCT_PROPERTY_OVERRIDES += \ |
391 | ro.opengles.version=131072 |
392 |