blob: 6bd1d11cb6f9d7e56b9a02f1ae05b9a010c6ac73
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/p230/device.mk) |
35 | $(call inherit-product-if-exists, vendor/google/products/gms.mk) |
36 | |
37 | # p230: |
38 | |
39 | PRODUCT_PROPERTY_OVERRIDES += \ |
40 | ro.hdmi.device_type=4 \ |
41 | persist.sys.hdmi.keep_awake=false |
42 | |
43 | PRODUCT_NAME := p230 |
44 | PRODUCT_DEVICE := p230 |
45 | PRODUCT_BRAND := Amlogic |
46 | PRODUCT_MODEL := p230 |
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/p230/fstab.AB.verity.amlogic:root/fstab.amlogic |
143 | else |
144 | PRODUCT_COPY_FILES += \ |
145 | device/amlogic/p230/fstab.AB.amlogic:root/fstab.amlogic |
146 | endif |
147 | else |
148 | ifeq ($(BUILD_WITH_DM_VERITY), true) |
149 | PRODUCT_COPY_FILES += \ |
150 | device/amlogic/p230/fstab.verity.amlogic:root/fstab.amlogic |
151 | else |
152 | PRODUCT_COPY_FILES += \ |
153 | device/amlogic/p230/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/p230/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic |
161 | else |
162 | PRODUCT_COPY_FILES += \ |
163 | device/amlogic/p230/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/p230/fstab.verity.amlogic:recovery/root/fstab.amlogic |
169 | else |
170 | PRODUCT_COPY_FILES += \ |
171 | device/amlogic/p230/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 | BLUETOOTH_MODULE := bcm4356 |
200 | include device/amlogic/common/bluetooth.mk |
201 | |
202 | |
203 | ######################################################################### |
204 | # |
205 | # ConsumerIr |
206 | # |
207 | ######################################################################### |
208 | |
209 | #PRODUCT_PACKAGES += \ |
210 | # consumerir.amlogic \ |
211 | # SmartRemote |
212 | #PRODUCT_COPY_FILES += \ |
213 | # frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml |
214 | |
215 | |
216 | #PRODUCT_PACKAGES += libbt-vendor |
217 | |
218 | ifeq ($(SUPPORT_HDMIIN),true) |
219 | PRODUCT_PACKAGES += \ |
220 | libhdmiin \ |
221 | HdmiIn |
222 | endif |
223 | |
224 | PRODUCT_COPY_FILES += \ |
225 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml |
226 | |
227 | # Audio |
228 | # |
229 | BOARD_ALSA_AUDIO=tiny |
230 | include device/amlogic/common/audio.mk |
231 | |
232 | ######################################################################### |
233 | # |
234 | # Camera |
235 | # |
236 | ######################################################################### |
237 | |
238 | ifneq ($(TARGET_BUILD_CTS), true) |
239 | PRODUCT_COPY_FILES += \ |
240 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
241 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml |
242 | endif |
243 | |
244 | |
245 | |
246 | ######################################################################### |
247 | # |
248 | # PlayReady DRM |
249 | # |
250 | ######################################################################### |
251 | #export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP |
252 | #export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP |
253 | ######################################################################### |
254 | # |
255 | # Verimatrix DRM |
256 | ########################################################################## |
257 | #verimatrix web |
258 | BUILD_WITH_VIEWRIGHT_WEB := false |
259 | #verimatrix stb |
260 | BUILD_WITH_VIEWRIGHT_STB := false |
261 | ######################################################################### |
262 | |
263 | |
264 | #DRM Widevine |
265 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),) |
266 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3 |
267 | endif |
268 | |
269 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1) |
270 | TARGET_USE_OPTEEOS := true |
271 | TARGET_USE_HW_KEYMASTER := true |
272 | endif |
273 | |
274 | $(call inherit-product, device/amlogic/common/media.mk) |
275 | |
276 | ######################################################################### |
277 | # |
278 | # Languages |
279 | # |
280 | ######################################################################### |
281 | |
282 | # For all locales, $(call inherit-product, build/target/product/languages_full.mk) |
283 | 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 \ |
284 | 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 \ |
285 | 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 \ |
286 | 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 \ |
287 | 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 \ |
288 | bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ |
289 | |
290 | ################################################################################# |
291 | # |
292 | # PPPOE |
293 | # |
294 | ################################################################################# |
295 | ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) |
296 | #BUILD_WITH_PPPOE := true |
297 | endif |
298 | |
299 | ifeq ($(BUILD_WITH_PPPOE),true) |
300 | PRODUCT_PACKAGES += \ |
301 | PPPoE \ |
302 | libpppoejni \ |
303 | libpppoe \ |
304 | pppoe_wrapper \ |
305 | pppoe \ |
306 | droidlogic.frameworks.pppoe \ |
307 | droidlogic.external.pppoe \ |
308 | droidlogic.software.pppoe.xml |
309 | PRODUCT_PROPERTY_OVERRIDES += \ |
310 | ro.platform.has.pppoe=true |
311 | endif |
312 | |
313 | ################################################################################# |
314 | # |
315 | # DEFAULT LOWMEMORYKILLER CONFIG |
316 | # |
317 | ################################################################################# |
318 | BUILD_WITH_LOWMEM_COMMON_CONFIG := true |
319 | |
320 | BOARD_USES_USB_PM := true |
321 | |
322 | PRODUCT_COPY_FILES += \ |
323 | $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \ |
324 | |
325 | include device/amlogic/common/software.mk |
326 | ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) |
327 | PRODUCT_PROPERTY_OVERRIDES += \ |
328 | ro.sf.lcd_density=320 |
329 | else |
330 | PRODUCT_PROPERTY_OVERRIDES += \ |
331 | ro.sf.lcd_density=240 |
332 | endif |
333 | |
334 | |
335 | ######################################################################### |
336 | # |
337 | # A/B update |
338 | # |
339 | ######################################################################### |
340 | ifeq ($(AB_OTA_UPDATER),true) |
341 | PRODUCT_PACKAGES += \ |
342 | bootctrl.amlogic \ |
343 | bootctl |
344 | |
345 | PRODUCT_PACKAGES += \ |
346 | update_engine \ |
347 | update_engine_client \ |
348 | update_verifier \ |
349 | delta_generator \ |
350 | brillo_update_payload \ |
351 | android.hardware.boot@1.0-impl \ |
352 | android.hardware.boot@1.0-service |
353 | endif |
354 | ######################################################################### |
355 | # |
356 | # OpenGLES Version |
357 | # |
358 | ######################################################################### |
359 | PRODUCT_PROPERTY_OVERRIDES += \ |
360 | ro.opengles.version=131072 |
361 |