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