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