blob: 587b4c9b6f07aa6719f96d904b831db430513d22
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/mbox/product_mbox.mk) |
34 | $(call inherit-product, device/amlogic/braun/device.mk) |
35 | $(call inherit-product-if-exists, vendor/google/products/gms.mk) |
36 | $(call inherit-product, device/amlogic/braun/vendor_prop.mk) |
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 | # braun: |
62 | |
63 | PRODUCT_PROPERTY_OVERRIDES += \ |
64 | ro.hdmi.device_type=4 \ |
65 | persist.sys.hdmi.keep_awake=false |
66 | |
67 | PRODUCT_NAME := braun |
68 | PRODUCT_DEVICE := braun |
69 | PRODUCT_BRAND := Amlogic |
70 | PRODUCT_MODEL := braun |
71 | PRODUCT_MANUFACTURER := Amlogic |
72 | |
73 | TARGET_KERNEL_BUILT_FROM_SOURCE := false |
74 | |
75 | PRODUCT_TYPE := mbox |
76 | |
77 | WITH_LIBPLAYER_MODULE := false |
78 | |
79 | OTA_UP_PART_NUM_CHANGED := true |
80 | |
81 | BOARD_AML_VENDOR_PATH := vendor/amlogic/common/ |
82 | |
83 | BOARD_WIDEVINE_TA_PATH := vendor/amlogic/ |
84 | |
85 | AB_OTA_UPDATER :=true |
86 | BUILD_WITH_AVB := true |
87 | |
88 | ifeq ($(BUILD_WITH_AVB),true) |
89 | #BOARD_AVB_ENABLE := true |
90 | BOARD_BUILD_DISABLED_VBMETAIMAGE := true |
91 | BOARD_AVB_ALGORITHM := SHA256_RSA2048 |
92 | BOARD_AVB_KEY_PATH := device/amlogic/common/security/testkey_rsa2048.pem |
93 | BOARD_AVB_ROLLBACK_INDEX := 0 |
94 | endif |
95 | |
96 | ifeq ($(AB_OTA_UPDATER),true) |
97 | AB_OTA_PARTITIONS := \ |
98 | boot \ |
99 | system \ |
100 | vendor \ |
101 | odm |
102 | |
103 | TARGET_BOOTLOADER_CONTROL_BLOCK := true |
104 | TARGET_NO_RECOVERY := true |
105 | ifneq ($(BUILD_WITH_AVB),true) |
106 | TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi |
107 | else |
108 | TARGET_PARTITION_DTSI := partition_mbox_ab_avb.dtsi |
109 | endif |
110 | else |
111 | TARGET_NO_RECOVERY := false |
112 | |
113 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
114 | |
115 | ifeq ($(ANDROID_BUILD_TYPE), 64) |
116 | TARGET_PARTITION_DTSI := partition_mbox_normal_P_64.dtsi |
117 | else |
118 | TARGET_PARTITION_DTSI := partition_mbox_normal_P_32.dtsi |
119 | endif |
120 | |
121 | ifneq ($(BUILD_WITH_AVB),true) |
122 | TARGET_FIRMWARE_DTSI := firmware_normal.dtsi |
123 | else |
124 | ifeq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE), true) |
125 | ifeq ($(BOARD_BUILD_DISABLED_VBMETAIMAGE), true) |
126 | TARGET_FIRMWARE_DTSI := firmware_system.dtsi |
127 | else |
128 | TARGET_FIRMWARE_DTSI := firmware_avb_system.dtsi |
129 | endif |
130 | else |
131 | ifeq ($(BOARD_BUILD_DISABLED_VBMETAIMAGE), true) |
132 | TARGET_FIRMWARE_DTSI := firmware_normal.dtsi |
133 | else |
134 | TARGET_FIRMWARE_DTSI := firmware_avb.dtsi |
135 | endif |
136 | endif |
137 | endif |
138 | |
139 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
140 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
141 | endif |
142 | |
143 | #########Support compiling out encrypted zip/aml_upgrade_package.img directly |
144 | #PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true |
145 | PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/p230_v1/aml-user-key.sig |
146 | PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl |
147 | PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \ |
148 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \ |
149 | --aeskey enable |
150 | PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \ |
151 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
152 | PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \ |
153 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
154 | |
155 | ######################################################################## |
156 | # |
157 | # ATV |
158 | # |
159 | ######################################################################## |
160 | ifneq ($(BOARD_COMPILE_ATV),false) |
161 | BOARD_COMPILE_CTS := true |
162 | TARGET_BUILD_GOOGLE_ATV:= true |
163 | DONT_DEXPREOPT_PREBUILTS:= true |
164 | endif |
165 | ######################################################################## |
166 | |
167 | ######################################################################## |
168 | # |
169 | # CTS |
170 | # |
171 | ######################################################################## |
172 | ifeq ($(BOARD_COMPILE_CTS),true) |
173 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
174 | BOARD_PLAYREADY_LEVEL := 1 |
175 | TARGET_BUILD_CTS:= true |
176 | TARGET_BUILD_NETFLIX:= true |
177 | endif |
178 | ######################################################################## |
179 | |
180 | ######################################################################### |
181 | # |
182 | # Dm-Verity |
183 | # |
184 | ######################################################################### |
185 | #BUILD_WITH_DM_VERITY := true |
186 | #TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true |
187 | ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
188 | BUILD_WITH_DM_VERITY := true |
189 | endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
190 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
191 | PRODUCT_PACKAGES += \ |
192 | libfs_mgr \ |
193 | fs_mgr \ |
194 | slideshow |
195 | endif |
196 | |
197 | PRODUCT_COPY_FILES += \ |
198 | device/amlogic/braun/fstab.system.amlogic:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.amlogic |
199 | |
200 | ######################################################################### |
201 | # |
202 | # WiFi |
203 | # |
204 | ######################################################################### |
205 | |
206 | #MULTI_WIFI_SUPPORT := true |
207 | WIFI_MODULE := bcm4356 |
208 | WIFI_BUILD_IN := true |
209 | include device/amlogic/common/wifi.mk |
210 | |
211 | # Change this to match target country |
212 | # 11 North America; 14 Japan; 13 rest of world |
213 | PRODUCT_DEFAULT_WIFI_CHANNELS := 11 |
214 | |
215 | |
216 | ######################################################################### |
217 | # |
218 | # Bluetooth |
219 | # |
220 | ######################################################################### |
221 | |
222 | BOARD_HAVE_BLUETOOTH := true |
223 | BLUETOOTH_MODULE := bcm4356 |
224 | #MULTI_BLUETOOTH_SUPPORT := true |
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_USE_HW_KEYMASTER := true |
298 | endif |
299 | |
300 | $(call inherit-product, device/amlogic/common/media.mk) |
301 | |
302 | ######################################################################### |
303 | # |
304 | # Languages |
305 | # |
306 | ######################################################################### |
307 | |
308 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
309 | 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 \ |
310 | 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 \ |
311 | 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 \ |
312 | 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 \ |
313 | 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 \ |
314 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
315 | |
316 | ################################################################################# |
317 | # |
318 | # PPPOE |
319 | # |
320 | ################################################################################# |
321 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
322 | #BUILD_WITH_PPPOE := true |
323 | endif |
324 | |
325 | ifeq ($(BUILD_WITH_PPPOE),true) |
326 | PRODUCT_PACKAGES += \ |
327 | PPPoE \ |
328 | libpppoejni \ |
329 | libpppoe \ |
330 | pppoe_wrapper \ |
331 | pppoe \ |
332 | droidlogic.frameworks.pppoe \ |
333 | droidlogic.external.pppoe \ |
334 | droidlogic.software.pppoe.xml |
335 | PRODUCT_PROPERTY_OVERRIDES += \ |
336 | ro.platform.has.pppoe=true |
337 | endif |
338 | |
339 | ################################################################################# |
340 | # |
341 | # DEFAULT LOWMEMORYKILLER CONFIG |
342 | # |
343 | ################################################################################# |
344 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
345 | |
346 | BOARD_USES_USB_PM := true |
347 | |
348 | |
349 | include device/amlogic/common/software.mk |
350 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
351 | PRODUCT_PROPERTY_OVERRIDES += \ |
352 | ro.sf.lcd_density=320 |
353 | else |
354 | PRODUCT_PROPERTY_OVERRIDES += \ |
355 | ro.sf.lcd_density=240 |
356 | endif |
357 | |
358 | |
359 | ######################################################################### |
360 | # |
361 | # A/B update |
362 | # |
363 | ######################################################################### |
364 | ifeq ($(BUILD_WITH_AVB),true) |
365 | PRODUCT_PACKAGES += \ |
366 | bootctrl.avb \ |
367 | libavb_user |
368 | endif |
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 |