blob: 80908d6ea4d8df0aafda4d9374efc9d870320e20
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 | |
22 | # Dynamic enable start/stop zygote_secondary in 64bits |
23 | # and 32bit system, default closed |
24 | #TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true |
25 | |
26 | # Inherit from those products. Most specific first. |
27 | ifneq ($(ANDROID_BUILD_TYPE), 32) |
28 | ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true) |
29 | $(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk) |
30 | else |
31 | $(call inherit-product, build/target/product/core_64_bit.mk) |
32 | endif |
33 | endif |
34 | |
35 | $(call inherit-product, device/amlogic/common/products/mbox/product_mbox.mk) |
36 | $(call inherit-product, device/amlogic/p212/device.mk) |
37 | $(call inherit-product-if-exists, vendor/google/products/gms.mk) |
38 | |
39 | # p212: |
40 | PRODUCT_PROPERTY_OVERRIDES += \ |
41 | ro.hdmi.device_type=4 \ |
42 | persist.sys.hdmi.keep_awake=false |
43 | |
44 | PRODUCT_NAME := p212 |
45 | PRODUCT_DEVICE := p212 |
46 | PRODUCT_BRAND := Amlogic |
47 | PRODUCT_MODEL := p212 |
48 | PRODUCT_MANUFACTURER := Amlogic |
49 | |
50 | PRODUCT_TYPE := mbox |
51 | |
52 | #BOARD_OLD_PARTITION := true |
53 | |
54 | WITH_LIBPLAYER_MODULE := false |
55 | |
56 | OTA_UP_PART_NUM_CHANGED := true |
57 | |
58 | #AB_OTA_UPDATER :=true |
59 | |
60 | ifeq ($(AB_OTA_UPDATER),true) |
61 | AB_OTA_PARTITIONS := \ |
62 | boot \ |
63 | system |
64 | |
65 | ifneq ($(BOARD_OLD_PARTITION),true) |
66 | AB_OTA_PARTITIONS += \ |
67 | vendor \ |
68 | odm |
69 | endif |
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.dtsi |
77 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
78 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
79 | endif |
80 | |
81 | #########Support compiling out encrypted zip/aml_upgrade_package.img directly |
82 | #PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true |
83 | PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/gxl_p212_v1/aml-user-key.sig |
84 | PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl |
85 | PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \ |
86 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \ |
87 | --aeskey enable |
88 | PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \ |
89 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
90 | PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \ |
91 | --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) |
92 | |
93 | ######################################################################## |
94 | # |
95 | # ATV |
96 | # |
97 | ######################################################################## |
98 | ifeq ($(BOARD_COMPILE_ATV),true) |
99 | BOARD_COMPILE_CTS := true |
100 | TARGET_BUILD_GOOGLE_ATV:= true |
101 | DONT_DEXPREOPT_PREBUILTS:= true |
102 | endif |
103 | ######################################################################## |
104 | |
105 | ######################################################################## |
106 | # |
107 | # CTS |
108 | # |
109 | ######################################################################## |
110 | ifeq ($(BOARD_COMPILE_CTS),true) |
111 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
112 | BOARD_PLAYREADY_LEVEL := 1 |
113 | TARGET_BUILD_CTS:= true |
114 | TARGET_BUILD_NETFLIX:= true |
115 | endif |
116 | ######################################################################## |
117 | |
118 | ######################################################################### |
119 | # |
120 | # Dm-Verity |
121 | # |
122 | ######################################################################### |
123 | #BUILD_WITH_DM_VERITY := true |
124 | #TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true |
125 | ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
126 | BUILD_WITH_DM_VERITY := true |
127 | endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) |
128 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
129 | PRODUCT_PACKAGES += \ |
130 | libfs_mgr \ |
131 | fs_mgr \ |
132 | slideshow |
133 | endif |
134 | ifneq ($(BOARD_OLD_PARTITION),true) |
135 | ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) |
136 | ifeq ($(AB_OTA_UPDATER),true) |
137 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
138 | PRODUCT_COPY_FILES += \ |
139 | device/amlogic/p212/fstab.AB.verity.amlogic:root/fstab.amlogic |
140 | else |
141 | PRODUCT_COPY_FILES += \ |
142 | device/amlogic/p212/fstab.AB.amlogic:root/fstab.amlogic |
143 | endif |
144 | else |
145 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
146 | PRODUCT_COPY_FILES += \ |
147 | device/amlogic/p212/fstab.verity.amlogic:root/fstab.amlogic |
148 | else |
149 | PRODUCT_COPY_FILES += \ |
150 | device/amlogic/p212/fstab.amlogic:root/fstab.amlogic |
151 | endif |
152 | endif |
153 | else |
154 | ifeq ($(AB_OTA_UPDATER),true) |
155 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
156 | PRODUCT_COPY_FILES += \ |
157 | device/amlogic/p212/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic |
158 | else |
159 | PRODUCT_COPY_FILES += \ |
160 | device/amlogic/p212/fstab.AB.amlogic:recovery/root/fstab.amlogic |
161 | endif |
162 | else |
163 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
164 | PRODUCT_COPY_FILES += \ |
165 | device/amlogic/p212/fstab.verity.amlogic:recovery/root/fstab.amlogic |
166 | else |
167 | PRODUCT_COPY_FILES += \ |
168 | device/amlogic/p212/fstab.amlogic:recovery/root/fstab.amlogic |
169 | endif |
170 | endif |
171 | endif |
172 | endif |
173 | ifeq ($(BOARD_OLD_PARTITION),true) |
174 | PRODUCT_COPY_FILES += \ |
175 | device/amlogic/p212/fstab.3.14.amlogic:root/fstab.amlogic |
176 | endif |
177 | |
178 | ######################################################################### |
179 | # |
180 | # WiFi |
181 | # |
182 | ######################################################################### |
183 | |
184 | MULTI_WIFI_SUPPORT := true |
185 | #WIFI_MODULE := AP6335 |
186 | include device/amlogic/common/wifi.mk |
187 | |
188 | # Change this to match target country |
189 | # 11 North America; 14 Japan; 13 rest of world |
190 | PRODUCT_DEFAULT_WIFI_CHANNELS := 11 |
191 | |
192 | |
193 | ######################################################################### |
194 | # |
195 | # Bluetooth |
196 | # |
197 | ######################################################################### |
198 | |
199 | BOARD_HAVE_BLUETOOTH := true |
200 | #MULTI_BLUETOOTH_SUPPORT := true |
201 | BLUETOOTH_MODULE := AP6335 |
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_USE_HW_KEYMASTER := true |
275 | endif |
276 | |
277 | $(call inherit-product, device/amlogic/common/media.mk) |
278 | |
279 | ######################################################################### |
280 | # |
281 | # Languages |
282 | # |
283 | ######################################################################### |
284 | |
285 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
286 | 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 \ |
287 | 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 \ |
288 | 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 \ |
289 | 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 \ |
290 | 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 \ |
291 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
292 | |
293 | ################################################################################# |
294 | # |
295 | # PPPOE |
296 | # |
297 | ################################################################################# |
298 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
299 | BUILD_WITH_PPPOE := true |
300 | endif |
301 | |
302 | ifeq ($(BUILD_WITH_PPPOE),true) |
303 | PRODUCT_PACKAGES += \ |
304 | PPPoE \ |
305 | libpppoejni \ |
306 | libpppoe \ |
307 | pppoe_wrapper \ |
308 | pppoe \ |
309 | droidlogic.frameworks.pppoe \ |
310 | droidlogic.external.pppoe \ |
311 | droidlogic.software.pppoe.xml |
312 | PRODUCT_PROPERTY_OVERRIDES += \ |
313 | ro.platform.has.pppoe=true |
314 | endif |
315 | |
316 | ################################################################################# |
317 | # |
318 | # DEFAULT LOWMEMORYKILLER CONFIG |
319 | # |
320 | ################################################################################# |
321 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
322 | |
323 | BOARD_USES_USB_PM := true |
324 | |
325 | PRODUCT_COPY_FILES += \ |
326 | $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \ |
327 | |
328 | include device/amlogic/common/software.mk |
329 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
330 | PRODUCT_PROPERTY_OVERRIDES += \ |
331 | ro.sf.lcd_density=320 |
332 | else |
333 | PRODUCT_PROPERTY_OVERRIDES += \ |
334 | ro.sf.lcd_density=240 |
335 | endif |
336 | |
337 | |
338 | ######################################################################### |
339 | # |
340 | # A/B update |
341 | # |
342 | ######################################################################### |
343 | ifeq ($(AB_OTA_UPDATER),true) |
344 | PRODUCT_PACKAGES += \ |
345 | bootctrl.amlogic \ |
346 | bootctl |
347 | |
348 | PRODUCT_PACKAGES += \ |
349 | update_engine \ |
350 | update_engine_client \ |
351 | update_verifier \ |
352 | delta_generator \ |
353 | brillo_update_payload \ |
354 | android.hardware.boot@1.0-impl \ |
355 | android.hardware.boot@1.0-service |
356 | endif |
357 | ######################################################################### |
358 | # |
359 | # OpenGLES Version |
360 | # |
361 | ######################################################################### |
362 | PRODUCT_PROPERTY_OVERRIDES += \ |
363 | ro.opengles.version=131072 |
364 |