summaryrefslogtreecommitdiff
path: root/p230/p230.mk (plain)
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.
25ifneq ($(ANDROID_BUILD_TYPE), 32)
26ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true)
27$(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk)
28else
29$(call inherit-product, build/target/product/core_64_bit.mk)
30endif
31endif
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
39PRODUCT_PROPERTY_OVERRIDES += \
40 ro.hdmi.device_type=4 \
41 persist.sys.hdmi.keep_awake=false
42
43PRODUCT_NAME := p230
44PRODUCT_DEVICE := p230
45PRODUCT_BRAND := Amlogic
46PRODUCT_MODEL := p230
47PRODUCT_MANUFACTURER := Amlogic
48
49PRODUCT_TYPE := mbox
50
51WITH_LIBPLAYER_MODULE := false
52
53OTA_UP_PART_NUM_CHANGED := true
54
55AB_OTA_UPDATER :=true
56
57ifeq ($(AB_OTA_UPDATER),true)
58AB_OTA_PARTITIONS := \
59 boot \
60 system
61
62ifneq ($(BOARD_OLD_PARTITION),true)
63AB_OTA_PARTITIONS += \
64 vendor \
65 odm
66endif
67
68TARGET_BOOTLOADER_CONTROL_BLOCK := true
69TARGET_NO_RECOVERY := true
70TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi
71else
72TARGET_NO_RECOVERY := false
73
74ifneq ($(BOARD_OLD_PARTITION),true)
75TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi
76else
77TARGET_PARTITION_DTSI := partition_mbox_old.dtsi
78endif
79
80BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
81BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
82endif
83
84#########Support compiling out encrypted zip/aml_upgrade_package.img directly
85#PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true
86PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/p230_v1/aml-user-key.sig
87PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/gxl/aml_encrypt_gxl
88PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \
89 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \
90 --aeskey enable
91PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \
92 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
93PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \
94 --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY)
95
96########################################################################
97#
98# ATV
99#
100########################################################################
101ifeq ($(BOARD_COMPILE_ATV),true)
102BOARD_COMPILE_CTS := true
103TARGET_BUILD_GOOGLE_ATV:= true
104DONT_DEXPREOPT_PREBUILTS:= true
105endif
106########################################################################
107
108########################################################################
109#
110# CTS
111#
112########################################################################
113ifeq ($(BOARD_COMPILE_CTS),true)
114BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
115BOARD_PLAYREADY_LEVEL := 1
116TARGET_BUILD_CTS:= true
117TARGET_BUILD_NETFLIX:= true
118endif
119########################################################################
120
121#########################################################################
122#
123# Dm-Verity
124#
125#########################################################################
126BUILD_WITH_DM_VERITY := true
127#TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true
128ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
129BUILD_WITH_DM_VERITY := true
130endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true)
131ifeq ($(BUILD_WITH_DM_VERITY), true)
132PRODUCT_PACKAGES += \
133 libfs_mgr \
134 fs_mgr \
135 slideshow
136endif
137ifneq ($(BOARD_OLD_PARTITION),true)
138ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
139ifeq ($(AB_OTA_UPDATER),true)
140ifeq ($(BUILD_WITH_DM_VERITY), true)
141PRODUCT_COPY_FILES += \
142 device/amlogic/p230/fstab.AB.verity.amlogic:root/fstab.amlogic
143else
144PRODUCT_COPY_FILES += \
145 device/amlogic/p230/fstab.AB.amlogic:root/fstab.amlogic
146endif
147else
148ifeq ($(BUILD_WITH_DM_VERITY), true)
149PRODUCT_COPY_FILES += \
150 device/amlogic/p230/fstab.verity.amlogic:root/fstab.amlogic
151else
152PRODUCT_COPY_FILES += \
153 device/amlogic/p230/fstab.amlogic:root/fstab.amlogic
154endif
155endif
156else
157ifeq ($(AB_OTA_UPDATER),true)
158ifeq ($(BUILD_WITH_DM_VERITY), true)
159PRODUCT_COPY_FILES += \
160 device/amlogic/p230/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic
161else
162PRODUCT_COPY_FILES += \
163 device/amlogic/p230/fstab.AB.amlogic:recovery/root/fstab.amlogic
164endif
165else
166ifeq ($(BUILD_WITH_DM_VERITY), true)
167PRODUCT_COPY_FILES += \
168 device/amlogic/p230/fstab.verity.amlogic:recovery/root/fstab.amlogic
169else
170PRODUCT_COPY_FILES += \
171 device/amlogic/p230/fstab.amlogic:recovery/root/fstab.amlogic
172endif
173endif
174endif
175endif
176
177#########################################################################
178#
179# WiFi
180#
181#########################################################################
182
183#WIFI_MODULE := bcm4356
184MULTI_WIFI_SUPPORT := true
185include device/amlogic/common/wifi.mk
186
187# Change this to match target country
188# 11 North America; 14 Japan; 13 rest of world
189PRODUCT_DEFAULT_WIFI_CHANNELS := 11
190
191
192#########################################################################
193#
194# Bluetooth
195#
196#########################################################################
197
198BOARD_HAVE_BLUETOOTH := true
199BLUETOOTH_MODULE := bcm4356
200include 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
218ifeq ($(SUPPORT_HDMIIN),true)
219PRODUCT_PACKAGES += \
220 libhdmiin \
221 HdmiIn
222endif
223
224PRODUCT_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#
229BOARD_ALSA_AUDIO=tiny
230include device/amlogic/common/audio.mk
231
232#########################################################################
233#
234# Camera
235#
236#########################################################################
237
238ifneq ($(TARGET_BUILD_CTS), true)
239PRODUCT_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
242endif
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
258BUILD_WITH_VIEWRIGHT_WEB := false
259#verimatrix stb
260BUILD_WITH_VIEWRIGHT_STB := false
261#########################################################################
262
263
264#DRM Widevine
265ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),)
266BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
267endif
268
269ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1)
270TARGET_USE_OPTEEOS := true
271TARGET_USE_HW_KEYMASTER := true
272endif
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)
283PRODUCT_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#################################################################################
295ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
296#BUILD_WITH_PPPOE := true
297endif
298
299ifeq ($(BUILD_WITH_PPPOE),true)
300PRODUCT_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
309PRODUCT_PROPERTY_OVERRIDES += \
310 ro.platform.has.pppoe=true
311endif
312
313#################################################################################
314#
315# DEFAULT LOWMEMORYKILLER CONFIG
316#
317#################################################################################
318BUILD_WITH_LOWMEM_COMMON_CONFIG := true
319
320BOARD_USES_USB_PM := true
321
322PRODUCT_COPY_FILES += \
323 $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \
324
325include device/amlogic/common/software.mk
326ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
327PRODUCT_PROPERTY_OVERRIDES += \
328 ro.sf.lcd_density=320
329else
330PRODUCT_PROPERTY_OVERRIDES += \
331 ro.sf.lcd_density=240
332endif
333
334
335#########################################################################
336#
337# A/B update
338#
339#########################################################################
340ifeq ($(AB_OTA_UPDATER),true)
341PRODUCT_PACKAGES += \
342 bootctrl.amlogic \
343 bootctl
344
345PRODUCT_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
353endif
354#########################################################################
355#
356# OpenGLES Version
357#
358#########################################################################
359PRODUCT_PROPERTY_OVERRIDES += \
360 ro.opengles.version=131072
361