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