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