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