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