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